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 their

image text in transcribed
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 o 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 by using the following method. a) For all customers there is a service charge of $8.00 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 5 cents 200 or over but less than 800 800 or over Super Savings Plan participants are charged a $6.00 fee Super Savings Plan participants whose total bill (from (a), (b) and (c) above) c) d) exceed S 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 S2.26 $39.89

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

How can strategic alliances be used to help grow the business?

Answered: 1 week ago

Question

=+ (d) Show that a cyclic permutation is ergodic but not mixing.

Answered: 1 week ago

Question

What are the functions of top management?

Answered: 1 week ago

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago