Question: I have to write a java programing within Eclipse using JavaFX. The program is a car animation where when the user hits the park button

I have to write a java programing within Eclipse using JavaFX. The program is a car animation where when the user hits the park button a single car enters from the bottom right of the window and parks in the rectangle square in the image below. The garage can only hold up to 5 cars and doesnt allow the user to go past that amount. Once a single car or 5 of the cars are in the garage the user can hit the Unpark button to make the car follow the road and exit the scene at the top right. I have to do this by using stacks so when I hit the unpark button the car at the bottom of the garage exits first. I have drew a better picture than the one below to give a better understanding of what i mean.

I have to write a java programing within Eclipse using JavaFX. The

A drawing of what the program animation needs to look like.

program is a car animation where when the user hits the park

Part II. (80 pts.) Write a JavaFX program to solve the following problem. Two buttons appear at the top side by side. When the Park button is clicked, a small car drives from the right side onto the road and parks in the garage. The garage can hold five cars. When the Unpark button is clicked, the bottom car drops down from the garage, drives left, drives up, and drives right off the screen. A car is designed, minimally as rectangle on two circular wheels. Each car should be a random color. Include your name as stage title. You do not need to do a lot of error checking unless you wish; assume the user clicks Park five times and then Unpark five times. (Refer to demo in lecture.) Display after parking five cars: Your Name Park Unpark Part II. (80 pts.) Write a JavaFX program to solve the following problem. Two buttons appear at the top side by side. When the Park button is clicked, a small car drives from the right side onto the road and parks in the garage. The garage can hold five cars. When the Unpark button is clicked, the bottom car drops down from the garage, drives left, drives up, and drives right off the screen. A car is designed, minimally as rectangle on two circular wheels. Each car should be a random color. Include your name as stage title. You do not need to do a lot of error checking unless you wish; assume the user clicks Park five times and then Unpark five times. (Refer to demo in lecture.) Display after parking five cars: Your Name Park Unpark

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!