If you get to the end of the screen the car should start


This program needs to be done in java.

In this graphical program, you are going to simulate arcade car racing game.

You need a single player that is movable with the arrow keys, and you need another vehicle that will race the player. You should be able to race by hitting the right arrow key toward the end of the screen.

If you get to the end of the screen, the car should start over on the left side of the screen. The AI car should start over but should move faster this time.

Each time you make it to the end of the screen before the AI, you gain a point. If the AI makes it before you, the game is over. You should be able to play the game for 30 seconds. (i.e. you should survive for at least 30 seconds). Don't worry about collision detection with the AI car.

At the end of the simulation, you should gather the person's name, their favorite number, and their email address. You should check to make sure it is correctly formatted.

Specifics:

Gather the person's name.

Gather the person's favorite number - should be a number.

Collect the individual's email - should have an @ and the ". " operator.

Should pre-emptively check all those values as well as have exception handlers where appropriate.

Should have a countdown clock that starts at 30 and counts down to 0.

The AI car should race the player until the clock hits zero.

The player object should be able to move using the arrow keys.

Ignore collision detection.

For any exception handlers, you should write any exceptions to a log file.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: If you get to the end of the screen the car should start
Reference No:- TGS02900727

Expected delivery within 24 Hours