Answer to Question #39935 in C++ for Verasak Sitawan
Use the Car and RaceCar classes you created in the You Do It section of this chapter, or
create them now. Make the following changes:
G. Alter the main()function so it becomes a game. Start the user with $100 cash and ask
the user to bet an amount of money on which RaceCar will win the race. After the
race, if the user is correct, add the bet to the user’s cash, otherwise, subtract it. Display
the user’s total winnings. Continue to run races as long as the user places a bet greater
than 0. When the user is done, display the final cash value. Save the file as Race4.cpp.
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.