Question about Microsoft Computers & Internet
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
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
Tips for a great answer:
Jul 10, 2017 | Candy Washing Machines
Jun 08, 2017 | Water Computers & Internet
May 16, 2017 | The Computers & Internet
Sep 05, 2016 | Cell Phones
Feb 22, 2011 | Lexmark T 640 - printer - B/W - laser
Jan 10, 2011 | Epson STYLUS R230 InkJet Photo Printer
Apr 19, 2010 | HP Computers & Internet
Jan 03, 2008 | Biostar 945GZ-SE Micro Socket 775...
Oct 04, 2017 | Microsoft Computers & Internet
Sep 13, 2017 | Microsoft Computers & Internet
111 people viewed this question
Usually answered in minutes!