subject

A company manufactures red, blue, and green balls for a game. The balls are manufactured and sent down a conveyor belt. Write a SUBROUTINE that has an input parameter of the color of the ball, and an output parameter that designates which conveyor belt the ball is to go on. This subroutine is used to send the red balls down conveyor belt 1, the blue balls down conveyor belt 2, and the green balls down conveyor belt 3. A select case statement is to be used to assign the output parameter of 1, 2, or 3. To test this subroutine write a very simple program that has a user input with the color of the ball and outputs 1, 2, or 3 based on the color of the ball. (remember that Subroutines inputs and outputs are via their parameter list) Color must be a string This test program must cycle until user stops it.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:00, cia196785920
Look at the circuit illustrated in the figure above. assume that the values of r1 and r2 are equal. if you connect your meter’s test probes to points a and b in the circuit, which of the following voltages would you measure
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, abelxoconda
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, summerhumphries3
What are some settings you can control when formatting columns?
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, shyshy1791
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
A company manufactures red, blue, and green balls for a game. The balls are manufactured and sent do...

Questions in other subjects:

Konu
Mathematics, 02.12.2021 20:10
Konu
Computers and Technology, 02.12.2021 20:10
Konu
Physics, 02.12.2021 20:10