Customer type and its units of utility

You will need to design an application that will receive the customer type and its units of utility used for the billing duration. The application will calculate and display the cost per unit based on the customer type and the total charges for that billing cycle. Calculate the charges using the following data.
Customer Type Units Consumed Cost per unit ($)
Commercial <= 1,000 $0.50 per unit
Commercial 1,000 < $0.50 per unit
Industrial < 800 $0.65 per unit
Industrial 800 <= 2,000 $0.55 per unit
Industrial 2,000 < $0.50 per unit
Residential < 500 $0.85 per unit
Residential 500 <= $0.75 per unit
Make sure that the units consumed entered is a positive number and the Customer Type is valid; otherwise your program should display an error message and ask for the data to be entered again until the user enters valid data. Test your algorithm with the following three sets of data.
Test case 1: Units used of 799, Customer Type is Industrial
Test case 2: Units used 500, Customer Type is Residential
Test case 3: Units used 800, Customer Type is Industrial
Test case 4: Units used 1000, Customer Type is Commercial
Test case 5: Units used 499, Customer Type is Residential
Rubric

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.