Computers & Internet Logo

Related Topics:

Posted on Mar 12, 2011
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Write a program that will compute water bill - Microsoft Computers & Internet

1 Answer

Anonymous

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

President:

An expert whose answer got voted for 500 times.

  • Master 2,992 Answers
  • Posted on Mar 12, 2011
Anonymous
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

President:

An expert whose answer got voted for 500 times.

Joined: Jun 30, 2008
Answers
2992
Questions
1
Helped
1093009
Points
9665

You don't say what programming language you're using, so I can't give you a finished program. I wouldn't anyway since you should do your own homework. But here's a suggestion for how to do it.

All the program needs to do is make some simple calculations. Your total bill will be determined by how much water you've used, based on whatever price per unit the supplier charges. If the program is very simple, you can just assign a rate, prompt for the user to input the amount of water used, do the calculation and display the result.

A more complex, real-world billing program will need to do more calculations, but it's all simple adjustment. There may be different rates used for commercial customers and residential users. The rate may vary depending on how much water was used during the billing cycle. There may be fees added (sewage treatment, for instance), and these may be flat charges or depend on water usage. You'll probably have taxes to add in as well, possibly several levels (local, state, etc.). You will need to get all this information in to the program, either assigning the values to constant variables, taking it from the user during the program, or calculating it as necessary.

But basically all your program will need to do is the calculation total bill = water used * rate + all other costs.

How fancy the program needs to be is up to you, based on the requirements set out by your instructor. It may simply display total bill amount on the screen. Or you may need to format and print a paper bill with all the information, like a real supplier would send out. Good luck, and thanks for using Fixya!

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer
0helpful
1answer

How can i connect with the city of Phoenix Az., to inquire about the sudden trippling of my monthly bill?

call or notify the water company that covers that area and ask about bill -question landlord about changes in water bill and request copy of bill we dont have access to your accounts --water bills can vary for many reasons and one can be an undetected leak /-fines-or charge hike are others
Sep 05, 2016 • Cell Phones
0helpful
1answer
0helpful
1answer

Why am i getting double billed

Who is double billing you? Is your computer doing it (i.e. a program), or paypal, or what? Need more info, unless someone else here knows what you mean.
0helpful
1answer

Missing product key

"Windows genuine advantage notification" is a mesage from bill gates and thats a mesage for piracy in operation system that mesage is in your computer program and was download from internet may be you try to download an update to one program and it comes with the downlad, the program check your operation system and the licens you put in and if do not macht start bothering you telling to you that your computer is not legaly registrate when the mesage "send dont send" apears press "dont send" what I do is instal the operation system again and say no to all update from windows(bill gates)..good luck and rate me
0helpful
1answer

Water billing

you have not specifiy what is your problem
Not finding what you are looking for?

127 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...