Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started