Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pringle Water Company supplies water to homes and businesses in atown. They need a computer program to compute and print the monthly bills for

Pringle Water Company supplies water to homes and businesses in atown. They need a computer program to compute and print the

Pringle Water Company supplies water to homes and businesses in atown. They need a computer program to compute and print the monthly bills for their customers. Some of the customers participate in the "Super Savings Plan" which offers them some savings (as described below). When the program runs, the computer should obtain the following information from the user. Customer identification number (Integer) Last reading of the water meter New reading of the water meter Whether or not the customer is in the Super Savings Plan (Use 1 for yes, and 0 for no) The difference between the last and the new readings of the meter is the number of units of water used by the customer. Bills are computed using the following method. a) For all customers there is a service charge of $8.00 I b) Charges for the used water are computed by using the following strategy: Number of units of water used Charge rate (cents per unit) Under 200 8 cents 7 cents 200 or over but less than 800 800 or over 5 cents c) Super Savings Plan participants are charged a $6.00 fee d) Super Savings Plan participants whose total bill (from (a), (b) and (c) above) exceed $35.00 are given a 20% discount. e) A 6% tax is added to the charges computed above to determine the final bill Format the output appropriately. The Final bill should include the customer ID, tax, and the total bill. Use the following data to verify your program calculations.. Customer ID: Super Saver? Previous Reading: New Reading: Tax: Amount due: 458 Yes 43020 43492 $2.26 $39.89

Step by Step Solution

3.54 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

Assumptions User will enter correct data include include using namespace std int main long int custo... 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

Fundamentals Of Biostatistics

Authors: Bernard Rosner

8th Edition

130526892X, 978-1305465510, 1305465512, 978-1305268920

More Books

Students also viewed these Programming questions

Question

Given find the value of k. es 1 e kx dx = 1 4'

Answered: 1 week ago