Question: solution for C++ code Rapid Ready Car Rental Agency rents four types of vehicles: Economy Intermediate Full size Specialty-sports The economy rents for $31.95 per

solution for C++ code solution for C++ code Rapid Ready Car Rental Agency rents four types
of vehicles: Economy Intermediate Full size Specialty-sports The economy rents for $31.95

Rapid Ready Car Rental Agency rents four types of vehicles: Economy Intermediate Full size Specialty-sports The economy rents for $31.95 per day; the intermediate rents for $41.95 per day; the full size rents for $49.95 per day; and the specialty-sports rents for $59.95 per day. They offer a 10% discount for rental periods in excess of 7 days. Rapid Ready has a policy that prohibits rental for periods beyond 30 days. Allow the user to select the type of vehicle and number of total days before displaying the final price. Create the C++ program based on the following specifications: 1. Create a program that will simulate the card game of 21 . a. The program will generate random numbers from 1 to 21 to represent the computers move. b. The program will generate random numbers for 1 to 11 to represent the users move. c. The program will then prompt the user if he or she wants to add another card. d. If the user decides to have another card, the program will again generate random numbers from 1 to 11 . The user can add more cards as he wants but if he goes over than 21 , he will automatically lose. e. The number the user got from the first card and the number the user got from the other cards he or she requested will be added and will represent the user's final move. f. If the user got a higher card number compared to what the computer has the user wins otherwise the computer wins g. If the user got a number that is more than 21 , he automatically loses. h. The program will prompt the user again if he or she wants to play if the user says no, the program will end. i. If the final card number of the user is the same as the computer, a message that says it is a tie will be displayed. j. There should be at least one void function in the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!