CSC 117 Programming for Scientists and Engineers Project 4 Due: Thursday, July 25, 2002 Total points : 25 Please email the program to the grader by midnight on the due date.
You can use the command: mail liuq@egr.unlv.edu -s "Project 4" < proj4.f90 where 'proj4.f90' is the name of the file you want to send. Suppose that a gas company bases its charges on consumption according to the following table: First 70 cubic meters $5.00 minimum cost Next 100 cubic meters 5.0 cents per cubic meter Next 230 cubic meters 2.5 cents per cubic meter Above 400 cubic meters 1.5 cents per cubic meter Meters readings are four-digit numbers that represent cubic meters. Write a program in which the meter reading for the previous month and the current meter reading 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. Your output must look like the sample output shown below. Sample Output: Please enter previous and current meter readings: 1000 1500 Cost of gas is 17.25000 Enter 'Q' to quit, any other symbol to continue: C Please enter previous and current meter readings: 800 1400 Cost of gas is 18.75000 Enter 'Q' to quit, any other symbol to continue: Q Thank you and good-bye