Gas used /Rate
first 70 cubic meters - $5 minimum cost
next 100 cubic meters - 5 cents per cubic meter
next 230 cubic meters - 2.5 cents per cubic meter
above 400 cubic meters - 1.5 cents per cubic meters
Meter readings are four digit numbers that represent cubic meters. Write a program in which the meter reading for the previous month and the current month are entered and then the amount of the bill is calculated. Note:the current reading may be less than the previous one; for example, the previous reading may have been 9897, and the current one is 0103.
have to use case commands not if /then
Thanks!!
This post has been edited by Porter5423: 24 September 2008 - 02:20 PM

New Topic/Question
Reply




MultiQuote



|