Question: Complete the BillGasCustomers program that was started in the lecture. The Domestic Gas Supply Company records its customers' gas usage figures in a customer usage

 Complete the BillGasCustomers program that was started in the lecture. TheDomestic Gas Supply Company records its customers' gas usage figures in acustomer usage file. Each record on the file contains the customer's number,name, address, and gas usage expressed in cubic meters. Design a programthat will read the customer usage file, calculate the amount owed for

Complete the BillGasCustomers program that was started in the lecture. The Domestic Gas Supply Company records its customers' gas usage figures in a customer usage file. Each record on the file contains the customer's number, name, address, and gas usage expressed in cubic meters. Design a program that will read the customer usage file, calculate the amount owed for gas usage for each customer, and then print a report listing each customer's number, name, address, gas usage and the amount owed. The company bills its customers according to the following rate: if the customer's usage is 60 cubic meters or less, a rate of $2.00 per cubic meter is applied, if the customer's usage is more than 60 cubic meters, then a rate of $1.75 per cubic meters is applied for the first 60 cubic meters and $1.50 per cubic meter for the remaining usage. At the end of the report, print the total number of customers and the total amount owed to the company. import java. text.DateFormat; import java. text. SimpleDateFormat import java. util. Date; import java. util. Scanner

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!