Question: java question Question 1 (10 points) Write a program to calculate customer heating bills. The program should input the customer name, current gas meter reading

java question
java question Question 1 (10 points) Write a program to calculate customer

Question 1 (10 points) Write a program to calculate customer heating bills. The program should input the customer name, current gas meter reading and previous gas meter reading. The amount of gas consumed is the difference between the current gas meter reading and the previous gas meter reading. Gas is measured in GJ and the price per GJ is 4.24/GJ. There is an administration fee of $54.25 that needs to be added to each bill plus there is a charge of 5% GST on the total. The following is a sample run, user input is shown in bold underline: Enter customer name: Sara Lovelace Current meter reading: 1012 Previous current meter reading: 1002 Bill for Sara Lovelace Price for gas used $42.40 Admin fee $54.25 Total charge $101.48

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!