Question 1
Create a JNI program to calculate the electricity bill. The Java main program will request the user to provide the total electricity consumption (kWh) and total water consumption (m³).
First native method:
i) Input: Total electricity consumption (kWh)
ii) Calculate the electricity bill based on the table below:
Second native method:
i) Input: Total water consumption (m³).
ii) Calculate the water bill based on the table below:
Java’s main function invokes the first and native method, displays the electricity and water bill amount respectively, and calculates the total amount need to pay for the electricity and water.
A bonus will be given if students provide an additional feature that is attractive and useful.
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
The post TCP3151: Create a JNI program to calculate the electricity bill. The Java main program will request the user to provide the total electricity: Integrative Programming and Technologies Assignment, MMU, Malaysia appeared first on Malaysia Assignment Help.