Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use c plus plus language Tenaga Nasional Berhad charges electricity usage according to the following table: Tariff Category Unit Used Rate per kilowatt per
Please use c plus plus language
Tenaga Nasional Berhad charges electricity usage according to the following table: Tariff Category Unit Used Rate per kilowatt per hour(kWh) Domestic (D) First 200 kWh Next 100 kWh Over 300 kWh 10 cents 12 cents 9 cents 20 cents Commercial (C) First 200 kWh Next 100 kWh 22 cents Over 300 kWh 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 BerhadStep 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