i created an application c++ for the following problem and i would like to get some suggestions and corrections from you guys pls... and thank you....
here is the problem
Allenton Water Department wants a program that calculates a customer's monthly water bill. The clerk will enter the current and previous meter readings. The program should calculate and display the number of gallons of water used and the total charge for the water. The charge for the water is $7 per 1000 gallons. However, there is a minimum charge of $16.67( in other words every customer must pay at least 16.67).
here is what i have come up with but once i debugg and run it i got some erros.
something my teacher would say is that you need to have spaces before and after the operators. for example
totalCharge = 16.67 or gallonsUsed = currentReadings - previousReadings
the total charge in the if statement has a space as a variable?? this didn't compile did it?