In this assignment you have to perform 2 tasks:

 

  1. Create random situation on the screen by drawing cars in both lanes and drawing trees on the sides

 

  1. Implement collision checking.

 

Email you executable (with your last name included in the file name) and turn in the list file of the compiled program printed in Courier New 9pts font.

 

!!!! Late submissions for this assignment will not be accepted !!!!

 

The details of the assignment and hints are given in the source code.

 

Before running the program, do the following:

1. Make sure that the window size for Windows command prompt is set to be 50 characters

 

 

After completion of these two tasks you should be able to:

a)      At all times see the cars in both lanes properly facing the traffic, and see trees on both sides.

b)      The program should terminate in case of a collision.