You are going to write a design document for a program to play the game Artillery. Artillery is a two player game (played between one human player and a computer player ) where each player gets an artillery piece. The pieces are separated by some X meters and the players take turns shooting at each other. The player who is the first to land a shall within a certain distance of the enemy artillery piece wins. Players take turns by picking an angle (in degrees ) relative to the horizontal and a speed (in meters per second ) for their shell. The computer then calculates the distance that a shell travels in meters. If the shell lands within a certain distance of the enemy, the game is over. The game is written in JAVA, and is command line based(no GUI please)
* For a given angle theta ( in radians ) and a given speed s, the horizontal distance for a shell is given by the equation d = s*s*sin(2*theta)/9.8
* The user inputs angles in degrees, but the [url removed, login to view] function assumes that the angle is in radians. Given that there are 2*[url removed, login to view] radians for every 360 degrees, you could write a handy conversion function. Or, you could sniff around and see if the Math class has a neat function for you.
* [url removed, login to view]() is a function that takes an angle in radians as input and returns the sin of that angle.
* A single run of the program should allow the user to play multiple games of artillery.
* Each game, a new distance X is calculated. Say, X is between 100-200 meters ( your choice ). The user should be informed of this distance.
* The user should also be informed of how far each shot fired traveled and about any decisions made by the computer player.
* The user will play against a computer player ( with the user going first ). The computer player picks a random theta ( from between 0 and 90 degrees ) and a random speed ( between 0 m/s and say 100 m/s - your choice )
* When the user is done playing, if the user won more than 90% of their games, say something REALLY nice. If they won 75%-90%, then say something less nice. Otherwise, insult the user for their poor performance.