Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sample code with using c++ A water compary calculates the total monthly bill of water based on the block at which a monthly consumption falls

Sample code with using c++ image text in transcribed
image text in transcribed
A water compary calculates the total monthly bill of water based on the block at which a monthly consumption falls within (measured in cubic meters per month) as it follows. Write a C++ program that asics the user to input the monchly water consumption in cubic meters, calculates and prints the totai monthly bill in dollars (each dollar equals to 100 cents). The progam aiso prints to which biock(tier) the monchly consumption belongs. The program aso prints an appropriate warning message if the consumptipn inputis invalid (eg. negative value) 5uppose a user wants to rate a moble phone, according to the followivg condeians: A Frice should be lesis than 1500NCD. 2. Screen sige should be at leaur 4 inches 1. Weegit sheuld be less than 200 grams: the users'ratings are as follows: Sstarsi if all thie conditions above are met. 4 stars- If condition (i) and (iii) are met oniy 3 stara. if corichibon fii) and 2i=0 ere inet only 2 stars if condition (i) and (ii) are met only. Q stars, if none of the conditions above are itiet. Sample iapeas mingube Whase mier die grie of ofle plaine 1300 Pfrate witier the mores wate 3.3 Pitase anier the arinh of the phone in erams 150 4 shats

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago