Buscar

A car rental company has a rental rule, which will be presented in the following program: The program declares and initializes variables preconorm...

A car rental company has a rental rule, which will be presented in the following program:

The program declares and initializes variables preconormal, descontopromo, and precototal with the values 0.
The program reads the normal price of the rental from the standard input.
The program reads the day of the week and the category of the rental from the standard input.
If the day of the week is Monday, Tuesday, or Thursday, the program calculates the promotional discount and stores it in descontopromo.
If the day of the week is Wednesday, Friday, Saturday, or Sunday, the program sets the promotional discount to zero.
If the category of the rental is LAUNCH or COMMON, the program calculates the new normal price and stores it in preconormal.
If the category of the rental is not LAUNCH or COMMON, the program keeps the original normal price.
The program calculates the final price of the rental and stores it in precototal.
The program prints the final price of the rental on the screen.
a) The price of WEDNESDAY for LAUNCH is R$ 72.00.
b) The price of TUESDAY for LAUNCH is R$ 72.00.
c) The price of SUNDAY for COMMON is R$ 90.00.
d) The price of MONDAY for COMMON is R$ 85.00.
e) The price of THURSDAY for LAUNCH is R$ 72.00.