The GUI program should contain ten buttons, "Up Red", "Down Red", "Left Red", "Right Red", "Stop Red", "Up Blue", "Down Blue", "Left Blue", "Right Blue", and "Stop Blue". On the right-hand side of the buttons, add two sliders with labels at the top of each slider. On the right side of the sliders, add two panels showing a red ball moving on the cyan background, and the other panel showing a blue ball moving on the yellow background.
Your graphical user interface should be like the picture below. When the balls hit the end of the panel, they reverse their direction. A user can stop, change its direction to up, down, left, or right, and change their speed by using the sliders.
A red ball and a blue ball start from the left of each panel and start moving toward right until they hit the right end of the panel. When they hit the right wall of the panel, they reverse their direction and start moving left. When they hit the left wall of the panel, they reverse their direction and start moving right. When they hit the upper wall of the panel, they reverse their direction and start moving down. When they hit the lower wall of the panel, they reverse their direction and start moving up. When "Stop" button is pushed, corresponding ball (of the color) stops. When "Up" button is pushed, the ball should start moving up. When "Down" button is pushed, the ball should start moving down. When "Left" button is pushed, the ball should start moving left. When "Right" button is pushed, the ball should start moving right.
Changing the delay using the slider should change the delay of each ball. With a higher delay, it should slow down, and with a lower delay, it should speed up. (The size of the scene here is approximately 450 X 300). Also here's a link to a video showing how the program should perform:
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of