In-Lab Assignment
(AI: Francisco Lara-Dammer)
Write a program which gives this output.
This is a silly simulation of a race between 10 cars. The first car completing 20 miles is the winner. The corresponding row should get red. The following
skeleton code might help.
The idea is to create 10 threads each of which has a counter from 0 to 20.
After adding 1, the thread is put to sleep a random amount of time from 0 to 1
second. Notice that you cannot predict who the winner will be.
See this file: