Question: help with code in c++, will take coral code A car rental business is offering the following rates per day for the four categories of


A car rental business is offering the following rates per day for the four categories of automobiles that it rents Rate Per Day: Furthermore, if the cost calculated according to the chart is greater than $300, the customer should get a 10\%, discount. Write a program that calculates the cost to rent a car for a given number of days. The input will be a letter indicating the category ("E' for Economy/Compact, 'T" for intermediate, 'S' for Standard and 'F" for full size) followed by the number of weekend days and the number of weekdays. It should then display the total cost of renting the car, formatted to 2 decimal places Sample input and output: For input the output is: Ex. If the input is: E0.5 the output is: The cost of the rental is: $314.95 Ex: If the input is: A 03 the output is: Invalid Category Code. Available options: E, I, S and F. Your solution must use a switch statement and use the provided named constants. \begin{tabular}{l|l} LAB \\ Activir & 3.221: LAB: Rental Car Rates \end{tabular} main.cpp Run your program as often as you'd like, before submitting for grading. Below input values in the first box, then click Run program and observe the program second box. Enter program input (optional) A car rental business is offering the following rates per day for the four categories of automobiles that it rents Rate Per Day: Furthermore, if the cost calculated according to the chart is greater than $300, the customer should get a 10\%, discount. Write a program that calculates the cost to rent a car for a given number of days. The input will be a letter indicating the category ("E' for Economy/Compact, 'T" for intermediate, 'S' for Standard and 'F" for full size) followed by the number of weekend days and the number of weekdays. It should then display the total cost of renting the car, formatted to 2 decimal places Sample input and output: For input the output is: Ex. If the input is: E0.5 the output is: The cost of the rental is: $314.95 Ex: If the input is: A 03 the output is: Invalid Category Code. Available options: E, I, S and F. Your solution must use a switch statement and use the provided named constants. \begin{tabular}{l|l} LAB \\ Activir & 3.221: LAB: Rental Car Rates \end{tabular} main.cpp Run your program as often as you'd like, before submitting for grading. Below input values in the first box, then click Run program and observe the program second box. Enter program input (optional)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
