Your are to create a text base game to try and hit a target in two dimensional plane (X,Y) using a cannon ball.
The program will randomly create 5 targets (5 sets of X,Y) and display the set on screen. These are the coordinates of the targets such that: 500 < X < 5000 (meter) and 500< Y < 5000(meter)
Player will have 3 chances to hit any of the 5 square targets which is 10 X 10 meters by entering the initial velocity and initial angle. The coordinate of the target is at the center of the target.
If the player hits a target, the program will display the name and the number of tries and message indicating that the player won and the time it took to hit the target (time of flight for the hit try), and the target number with beeps for indication that a target was hit. If the player did not hit any target in 3 tries, the program will display the initial angles and the initial velocities that were needed to hit each target and list them on the screen.
Regardless of win or lose, the program must record the target numbers and their coordinates in a file with the players name (a name from [url removed, login to view], below), for example [url removed, login to view]
The game can be played only if the user has the correct name and correct ID. The list of names and ID’s are given in a text file called [url removed, login to view], such as below