Question about Microsoft Computers & Internet

1 Answer

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

Posted by on


1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.


    An expert whose answer got voted for 500 times.

  • Master
  • 2,992 Answers

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!

Posted on Mar 12, 2011


1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017


Add Your Answer

Uploading: 0%


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



Related Questions:

1 Answer

My water got turned off because landlord did not pay water bill.

You will be thirsty then. If your contract includes services, go round and see a solicitor.

Jun 08, 2017 | Water Computers & Internet

1 Answer

My address on my account is incorrect and as the only account I have , I use it as proof of residence. Who can I ask to correct it?

What bill is this? Is this your water bill? Call them to correct this. Ask for customer service.

May 16, 2017 | The Computers & Internet

1 Answer

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

1 Answer

Will not print bottom of page im printing water bills 3 bills to page will not print bottom 4 lines of bottom bill

You must see the size of paper is the same of the indicated in the printer driver or program.

Feb 22, 2011 | Lexmark T 640 - printer - B/W - laser

1 Answer

Got a new HP computer with a DVD burner but no instructions or program on how to burn DVDs.

Hi go to the internet and download any free burning program. A good one to use is Ashampoo Burning Studio 6 Free. Just follow the instructions in the program to burn cd,dvds ect..Hope this helps you.
Regards Bill

Apr 19, 2010 | HP Computers & Internet

1 Answer

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.

Apr 13, 2010 | Computers & Internet

1 Answer

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

Jan 03, 2008 | Biostar 945GZ-SE Micro Socket 775...

1 Answer

Water billing

you have not specifiy what is your problem

Oct 02, 2007 | Microsoft Office Standard for PC

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

111 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2768 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

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

Answer questions

Manuals & User Guides