Question: CSC 111 Program 1 Summer 2018 Water Bill Write a Java application that will ask the user to input the account name, a five digit

 CSC 111 Program 1 Summer 2018 Water Bill Write a Java

CSC 111 Program 1 Summer 2018 Water Bill Write a Java application that will ask the user to input the account name, a five digit account number, an account code, and the number of gallons used for the quarter. The water bill will be calculated according to the following rates as listed by the Onondaga County Water Authority. Residential Accounts: Line Fee: Usage Fee: First 10,000 $22.09 2.42 par 1000 gaons Next 13,000 Over 23,000 2.42 per 1000 gallons 3.22 per 1000 gallons 4.03 per 1000 gallons Commercial Accounts: Line Fee Usage Fee: $22.09 2.65 per 1000 gallons Industrial Accounts Line Fee: Usage Fee: First 200,000 $18.41 Next 2,500,000 Over 2,700,000 2.16 per 1000 gallons 1.73 per 1000 gallons 4.03 per 1000 gallons A switch will be used to select the appropriate rate schedule. The program will display an error message if an incorrect choice is made and will loop until a valid choice is made. The program will echo the input data as well as the total bill. The 5 digit account number will include leading zeros when to calculate more than one bill. appropriate. A repetition structure will be used to enable the user Sample output: Welcome to the Onondaga Nater Bill Caiculator Please enter your account name: Sanderson Family Please enter your 5 digit account number Please enter the number of gailons used this quarter Please choose from the following account types: 4 5 H for residential C for commercial I for Industrial Onondaga County Water Bill Account Name: Sanderson Family Account Number: 00045 Account Type: Residential Gallons Used: 15278.65 Amount Due:63.29 Do you have another account to process?

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!