Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
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