Professional Documents
Culture Documents
Calculate an electric bill based on the following rate & consumption table:
Kilowatt Consumption Cost
----------------------------- ---------------------------------------------
0 - 400 KWH a flat rate of pesos 8.50
401 – 1200 KWH pesos 8.50 (base rate) + 7.525 cents for each KWH over 400 (May –
Sept.) 6.575 cents for each KWH over 400 (all other months)
Over 1200 KWH calculate the first 1200 KWH according to the formula given above plus
5% of the appropriate seasonal rate for the KWH over 1200
NOTE: the program will not accept invalid date
2. The year is divided into four seasons: spring, summer, fall and winter. While the exact dates that the seasons
change vary a little bit from year to year because of the way that the calendar is constructed, we will use the
following dates for this exercise:
Create a program that reads a month and day from the user. The user will enter the name of the month as a
string, followed by the day within the month as an integer. Then your program should display the season
associated with the date that was entered.