Your program should do the following and must have the following functions:
The functions should have the names mentioned above. Also the program
should keep asking for options unless the user wants to quit. If the rates
are not
entered for the first time and the user asks to bill ask for the rates
before billing (use GetRates to do this).
Name the source code file: proj6.c
submit cs104-0101 lab6 proj6.c
(for more help on the submit mechanism take a look at http://www.gl.umbc.edu/submit )
Please follow all this instructions and make sure that you have met them before submitting. Don't send a copy to me. You will lose points if you don't follow the instructions.
Enter R to enter rates, B for billing and Q to
quit.
Enter Selection: B
Rates not entered. Please enter the rates first.
Fixed Rate (upto 100KWh.) : 100.00
Rate/KWh. (100 upto 200 KWh.) : 1.20
Rate /KWh. (200 upto 300 KWh.) : 1.50
Fixed Rate (above 300 KWh.) : 250.00
Enter usage in KWh. : 125
Total bill is $130.00
Enter R to enter rates, B for billing and Q to
quit.
Enter Selection: B
Enter usage in KWh. : 450
Total bill is $620.00
Enter R to enter rates, B for billing and Q to
quit.
Enter Selection: R
Fixed Rate (upto 100KWh.) : 100.00
Rate/KWh. (100 upto 200 KWh.) : 1.30
Rate /KWh. (200 upto 300 KWh.) : 1.70
Fixed Rate (above 300 KWh.) : 300.00
Enter R to enter rates, B for billing and Q to
quit.
Enter Selection: B
Enter usage in KWh. : 50
Total bill is $100.00
Enter R to enter rates, B for billing and Q to
quit.
Enter Selection: Q
Quitting!!
-- Remember the program keeps on asking for options unless the user wants to quit.
/* ** Filename: proj6.c ** Name: Your name ** SSAN: Last four digits of your SSN ** Date: Date of submission ** Course: CMSC-104 Section XXX ** Description: (Your psuedocode goes here. Must be detailed) ** Notes: (As needed, such as how to compile) */
You will lose points if you don't follow the
instructions for the Header Comment Block.