Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago