Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed

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 Berhad

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions