Old 04-17-2014, 06:05 PM   #1 (permalink)
Status: Senior Member
Posts: 1,217

Default write a program that runs a random horse race.

Write a program that runs a random horse race. The specification: There are three horses.
During each round, a random number from 1 to 100 is generated for each horse. The horse
advances one square if the random number is greater than 50. Show the track this way:
Write a function ShowHorse() that takes a horse number (1 to 3) and a position on the track,
and shows the current position of the horse. Have the program run until one of the horses
reaches the finish line.

in C++ language
Nick is offline   Reply With Quote



Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Write a C++ program that simulates an airplane race.? Bob Programming 2 12-12-2013 06:07 AM
Write a window program to display random string 20 times with random colors at random positions? Unknown_User Programming 2 08-24-2012 10:38 AM
data structure file manipulation - write a program for road race and the event 5k Run and Walk Road Race? Unknown_User Programming 1 03-28-2012 03:07 PM
write a c++ program to enter a data of 20 car racer using loop that help manager to register them for race? Maria Programming 0 12-06-2011 06:37 AM
Using Eclispe Java Programming, How Do I Make A Random Horse Race easecurry Coding 0 06-02-2011 11:36 PM