Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

What is the relationship between a Web site and a Web page?

Answered: 1 week ago

Question

Describe the concept of diversity and diversity management.

Answered: 1 week ago