Water Billing

Download Category:

Water Bill Solution.zip - (78.61 KB)
[
Water Bill Solution/Water Bill Project/
Water Bill Solution/Water Bill Project/bin/
Water Bill Solution/Water Bill Project/bin/Debug/
Water Bill Solution/Water Bill Project/bin/Debug/Water Bill Project.exe
Water Bill Solution/Water Bill Project/bin/Debug/Water Bill Project.pdb
Water Bill Solution/Water Bill Project/bin/Debug/Water Bill Project.vshost.exe
Water Bill Solution/Water Bill Project/bin/Debug/Water Bill Project.vshost.exe.manifest
Water Bill Solution/Water Bill Project/bin/Debug/Water Bill Project.xml
Water Bill Solution/Water Bill Project/bin/Release/
Water Bill Solution/Water Bill Project/frmMain.Designer.vb
Water Bill Solution/Water Bill Project/frmMain.resx
Water Bill Solution/Water Bill Project/frmMain.vb
Water Bill Solution/Water Bill Project/My Project/
Water Bill Solution/Water Bill Project/My Project/Application.Designer.vb
Water Bill Solution/Water Bill Project/My Project/Application.myapp
Water Bill Solution/Water Bill Project/My Project/AssemblyInfo.vb
Water Bill Solution/Water Bill Project/My Project/Resources.Designer.vb
Water Bill Solution/Water Bill Project/My Project/Resources.resx
Water Bill Solution/Water Bill Project/My Project/Settings.Designer.vb
Water Bill Solution/Water Bill Project/My Project/Settings.settings
Water Bill Solution/Water Bill Project/obj/
Water Bill Solution/Water Bill Project/obj/x86/
Water Bill Solution/Water Bill Project/obj/x86/Debug/
Water Bill Solution/Water Bill Project/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
Water Bill Solution/Water Bill Project/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Water Bill Solution/Water Bill Project/obj/x86/Debug/GenerateResource.read.1.tlog
Water Bill Solution/Water Bill Project/obj/x86/Debug/GenerateResource.write.1.tlog
Water Bill Solution/Water Bill Project/obj/x86/Debug/TempPE/
Water Bill Solution/Water Bill Project/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water Bill Project.exe
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water Bill Project.pdb
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water Bill Project.vbproj.FileListAbsolute.txt
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water Bill Project.xml
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water_Bill_Project.frmMain.resources
Water Bill Solution/Water Bill Project/obj/x86/Debug/Water_Bill_Project.Resources.resources
Water Bill Solution/Water Bill Project/Water Bill Project.vbproj
Water Bill Solution/Water Bill Project/Water Bill Project.vbproj.user
Water Bill Solution/Water Bill Solution.sln
Water Bill Solution/Water Bill Solution.suo
]

In this exercise, you code an application that calculates a water bill. The clerk at the water department will enter the current meter reading and the previous meter reading in two text boxes. The application should calculate and display the number of gallons of water used and the total charge for the water. The charge for water is $2.05 per 1000gallons, or .00205 per gallon. Use two independent Sub procedures: one to make the calculations and the other to display the results. Call both Sub procedures from the Calculate button’s Click event procedure. Make the calculations only when the current meter reading is greater than or equal to the previous meter reading; otherwise, display an appropriate message in a message box. Add a button between the Calculate and Exit buttons, with the text “Clear”, and code it to clear the two input text boxes and the output labels. d. Put brief comments in all sub procedures, explaining what that section does: the button click procedure, the sub procedure for making the calculations, the sub procedure for displaying the results, as well as the Clear button and the Exit button sub procedures. e. Declare the rate of .00205 dollars per gallon as a constant. f. The variables for Current reading, Previous reading and Gallons used should be integers. g. Your message box for invalid input should include these things: i. The message should include the numbers the user entered, for example: “ERROR: Current reading (2000) cannot be less than Previous reading (3000).” ii. The title bar text should say “Invalid Input”. iii. The message box button should say “OK”. iv. The message box icon should be the Error icon. h. The output for the total charge should be displayed in currency format.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.