Question: **This is programming with Java. Im a bit confused.. When answering if you could be kind enough to explain as well** Input When your program

**This is programming with Java. Im a bit confused.. When answering if you could be kind enough to explain as well**

Input

When your program runs, it should have a dialog with the user.

Ask the user:

1) the x and y location of the center of each asteroid as well as its size

(allow the user to decide how many asteroids),

2) the current score,

3) the number of lives remaining,

4)the x and y location of the players spaceship,

5) the x and y location of at least 1 alien spaceship, and

6)the color of the players spaceship and the alien spaceship (use integers, e.g. 1=red, 2=blue, 3=green).

Make sure the user enters values that will look good (e.g. each asteroid should display fully on the screen).

Give the user a range of acceptable values in each prompt and make them repeat each input

until they get it right.

Important Tip: Instead of storing the asteroid locations and sizes, draw each asteroid as soon as the user has entered its x, y, and size values.

Output

When the stage appears, it should look a bit like a scene from an Asteroids game.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!