Question: 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

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
Get step-by-step solutions from verified subject matter experts
