Question: I want the program as c++ code (can be written in code blocks ) Write a program that prompts the user to enter the amount

 I want the program as c++ code (can be written in

I want the program as c++ code (can be written in code blocks )

Write a program that prompts the user to enter the amount of consumed water in gallons and electricity in watts. The program calculates the bill assuming that the water and electricity rates are as in the following table: Water Electricity Gallons s 200 200 and s 850 Rate 0.75 1.15 2.75 Watts s 2500 2500 Rate 0.5 0.8 850 Sample input/ output: Enter the consumed water: 1025 Enter the consumed electricity: 3110 The bill for 1025 gallons of water and 311e watts of electricity is 3116 dirhams

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!