Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago