Question: In C++ note: please create separate functions outside the main function. The program ending like this Build a program that simulates a horse race. You
In C++
note: please create separate functions outside the main function.

The program ending like this


Build a program that simulates a horse race. You will have a track of 15 units long, and five horses. On each turn, each horse will flip a coin' (Right, I don't know how horses flip coins either, but go with me on this.) Half the time, the horse will move forward one unit, and half the time it will stay in the same place. On each turn, you will see the track with the positions of the five horses, and dots for all the other positions. The race ends when one of the horses passes the finish line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
