Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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
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