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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:40
Write an assembly program with the following specifications.a). in the main block, you should have two registers r4 and r5. they should be checked in an infinite loop. if r4 is greater than r5, then the greater subroutine will be called. if r4 is less than r5, then the less subroutine will be called. if r4 equals r5, then no operations will be done
Answers: 1
question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
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
question
Mathematics, 22.07.2019 16:00
Questions on the website: 13722362