logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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: 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

870 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

623 Answers

Hire Me
expert
Husnain SaeedComputer science

857 Answers

Hire Me
expert
Atharva PatilComputer science

583 Answers

Hire Me

Get Free Quote!

397 Experts Online