Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Tenaga Nasional Berhad charges electricity usage according to the following table: Tariff Category Unit Used Rate per kilowatt per hour(kWh) Domestic (D) 10 cents 12
Tenaga Nasional Berhad charges electricity usage according to the following table: Tariff Category Unit Used Rate per kilowatt per hour(kWh) Domestic (D) 10 cents 12 cents 9 cents First 200 kWh Next 100 kWh Over 300 kWh First 200 kWh Next 100 kWh Over 300 kWh Commercial (C) 20 cents 22 cents 18 cents Write a complete C++ program that prompts user to enter the following data: Customer name Customer address Customer category The units used The program will calculate the bill amount for each customer and prints the bill. This process will continue until the user requests to stop Then, generate a report that displays the following information: Total number of customers in each category Total electricity used in each category Total collection in Ringgit Malaysia (RM) for Tenaga Nasional Berhad
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