Below I have specified a class and method structure for you to follow. This is probably not the best solution to the problem, so you are welcome to think up your own design, but you are strongly encouraged to use an MVC architecture (separate user interface from data/processing); if you do not, you will essentially be starting from scratch with Project 2.
Classes
You will need to understand some basic physics for this. You might try googling "trajectory equations". I excluded time from this interface but calculate it under the covers (using currentX and initialX). Remember to convert between degrees and radians!
Your output should be similar to that shown below. I don't care if you use different characters or change your phrasing or whatever - I'm not going to be grading you based on diff
How many players do you have?
3
@@@
@@@
@@@ T
T T @@@ TTTTTTT T T TT T
TT TT @@@TT T TTT TT TT
TTT TTTT TT@@@
T T T TT TT TT
@@@ TTT TTT T T
T TTT @@@ TT T
TT TT TTT TT@@@T T
TT TTT
********************************************************************************
Player 1: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
45
Enter a velocity between 1 and 100:
20
******
**** ****
*** @@@ **
** @@@ **
* @@@ ** T
** T T * @@@ TTTTTTT T T TT T
* TT TT ** @@@TT T TTT TT TT
* TTT TTTT TT@@@
* T T T TT TT TT
@@@* TTT TTT T T
T TTT @@* TT T
TT TT TTT TT@@@T T
TT TTT
Player 2: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
140
Enter a velocity between 1 and 100:
15
*********
*** **
* **
** *@@@
* *@@
* @@@ T
* T T @@@ TTTTTTT T T TT T
* TT TT @@@TT T TTT TT TT
* TTT TTTT TT@@@
* T T T TT TT TT
* @@@ TTT TTT T T
T *TTT @@@ TT T
TT TT TTT TT@@@T T
TT TTT
Player 3: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
140
Enter a velocity between 1 and 100:
15
XXX*********
XXX **
XXX ** T
T T *@@@ TTTTTTT T T TT T
TT TT *@@TT T TTT TT TT
TTT TTTT TT@@@
T T T TT TT TT
@@@ TTT TTT T T
T TTT @@@ TT T
TT TT TTT TT@@@T T
TT TTT
Player 1: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
45
Enter a velocity between 1 and 100:
22
********
**** ****
*** ***
** **
* XXX **
** XXX *
** XXX ** T
* T T @@@ TTTTTTT T T TT T
* TT TT @@@TT T TTT TT TT
* TTT TTTT TT@@@
* T T T TT TT TT
@@@* TTT TTT T T
T TTT @@* TT T
TT TT TTT TT@@@T T
TT TTT
Player 3: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
135
Enter a velocity between 1 and 100:
20
******
**** ****
** ***
** **
** *
* **
** XXX *
* XXX *
* XXX * T
* T T *@@@ TTTTTTT T T TT T
* TT TT *@@TT T TTT TT TT
* TTT TTTT TT@@@
* T T T TT TT TT
* @@@ TTT TTT T T
T TTT @@@ TT T
TT TT TTT TT@@@T T
TT TTT
Player 1: Enter an angle between 0 and 180 (0 is due-east and 180 is due-west):
45
Enter a velocity between 1 and 100:
21
******
**** ****
*** ***
** XXX **
** XXX **
* XXX * T
** T T XXX TTTTTTT T T TT T
* TT TT XXXTT T TTT TT TT
* TTT TTTT TTXXX
* T T T TT TT TT
@@@* TTT TTT T T
T TTT @@* TT T
TT TT TTT TT@@@T T
TT TTT
Congratulations Player: 1 You Win!!
Play again? (y/n)