Question: please solve it programming for Engineer c++ Theoretical Quiz 2 Electricity Bill Write a program that prompts the user to input the nu e a
Theoretical Quiz 2 Electricity Bill Write a program that prompts the user to input the nu e a program that prompts the user to input the number of electricity watts consumed by a customer. The program calculates and prints the customer bil following tariff: culates and prints the customer bill according to the For a house, each watt cost 0.5 Dirhm if the number of watts is less than or equal to 10 and 0.8 Dirham for each extra watt. For business, each watt cost 0.3 Dirham if the number of watts is less than or equal watts, 0.6 Dirham if the number of watts is greater than 4000 but less than or equal to y watts, and 0.7 Dirham for each extra watt. Sample inputs / outputs: Enter the customer type, H or h for a house, and Bor b for business: h Enter the number of watts: 1200 The bill is 660 Dirham Enter the customer type, H or h for a house, and B or b for business: B Enter the number of watts: 12000 The bill is 6300 Dirham
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
