Pringle Water Company supplies water to homes and businesses in atown. They need a computer program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Assumptions User will enter correct data include include using namespace std int main long int custo... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
When a jury decides whether or not a defendant is guilty, do the jurors collectively use primarily inductive reasoning, deductive reasoning, or an equal amount of each? Write a brief report...
-
State whether or not a trust is created in each of the following situations: (a) A declares herself trustee of the bulk of my securities in trust for B. (b) A, the owner of Blackacre, purports to...
-
What determines whether or not a resource is scarce? Why is the concept of scarcity important to the definition of economics?
-
Energy of the emitted photon when an L-electron drops into the k-state in copper (z = 29) is -1 use R=109737 cm, cm =1.23910eV] 7994.6 eV 1094.6 eV 1293.6 eV 1097.3 eV
-
Do you think companies should be allowed to patent a naturally occurring molecule like botulinum toxin? Why or why not?
-
Determine the slope at B and the maximum displacement of the beam. Use the moment-area theorems. Take E = 29(10 3 ) ksi, I = 500 in 4 , 15 k B 6 ft 6 ft -
-
In the organizational chart for the consumer-packaged goods firm in Figure 22 5, where do product line, functional, and geographical groupings occur? Figure 22-5 Chief Marketing Officer or Vice...
-
Compute FIFO, LIFO, Average Cost?Periodic Presented below is information related to radios for the Couples Company for the month of July. (a) Assuming that the periodic inventory method is used,...
-
You have just been named Director of Data Administration of General Hardware Co. General Hardware maintains a large central IS organization with several operational relational databases at its...
-
What Are Empirical/Research Articles? Describe the resource assigned to you including two examples of how this resource will support your successful completion of the capstone project?
-
Vin= 1.50, R1 = 13.60 kiloohms, R2 = 6.80 kiloohms. Find Vo2, in Volts, watch your signs. R1kQ M Vin DC 6.8 3 Vol 6.8 kQ 2 R2kQ Vo2
-
Considering the behavior of young individuals today, do you believe that their development is still in consonance with principles and facts about psychosexual development? Why?
-
The Kaufmans have decided to buy a house that costs $260,000. After a down payment of $20,000, they can get an interest rate of 7.8%. Find their monthly payments if they set up a 30 year loan What is...
-
A bond issued by Liberty, Inc. has a coupon rate of 8% and a face value of $1,000. The bond will mature in 2 years. The bond is currently selling in the market at a price of $950. A potential...
-
A. Imagine the white car in the left lane is moving more slowly than the surrounding traffic. How is this a violation of state uniform traffic law? B. If a driver is driving more slowly than the...
-
Implement the query below and explain how the processing of display the amazon express price display? SELECT c.Name, p.Title, sc.Quantity, p.amazon Express Price, s.Name FROM ShoppingCart sc, Product...
-
The business owes the bank and suppliers $ 1 3 , 0 0 0 . They have assets of cash and equipment recorded at $ 5 1 , 0 0 0 . The business made sales of $ 2 8 , 0 0 0 and incurred costs of $ 5 , 0 0 0...
-
Given find the value of k. es 1 e kx dx = 1 4'
-
Answer the same question as Problem 10.32 considering 36- to 45-year-old males only? Mental Health A study was performed in Lebanon looking at the effect of widowhood on mortality [14]. Each of 151...
-
Provide a point estimate and 95% CI for the probability of having the PKU phenotype? Suppose that on a population level it is impossible to genotype large numbers of individuals. However, it is known...
-
What is the probability that 0 rats will die in the 8-hour period? Cancer, Epidemiology An experiment is designed to test the potency of a drug on 20 rats. Previous animal studies have shown that a...
-
Distinguish between (a) a branch, (b) a subsidiary, and (c) a joint venture.
-
What purposes are normally served by bilateral investment protection treaties?
-
What is meant by collateral security?
Study smarter with the SolutionInn App