Question: someone please answer this question in the format that is provided. c++ please #include #include using namespace std; const double ECON_WEEKEND = 9.99; // Economy
someone please answer this question in the format that is provided. c++ please
#include
const double ECON_WEEKEND = 9.99; // Economy weekend cost const double INTER_WEEKEND = 14.99; // Intermediate weekend cost const double STANDARD_WEEKEND = 17.99; // Standard weekend cost const double FULL_SIZE_WEEKEND = 19.99; // Full Size weekend cost
const double ECON_WEEKDAY = 39.99; // Economy weekday cost const double INTER_WEEKDAY = 49.99; // Intermediate weekday cost const double STANDARD_WEEKDAY = 59.99; // Standard weekday cost const double FULL_SIZE_WEEKDAY = 69.99; // Full Size weekday cost
const double DISCOUNT_LIMIT = 300.00; // Limit for discount eligibility const double DISCOUNT = .1; // The discount perecentage
int main() { /* Type your code here. */
return 0; }

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, "I" 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
