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 19:30
Asalesman at a high end computer security firm want to sell you a proactive cover for your passport, which contains an rfid tag inside storing your sensitive information. the salesperson's solution cost only $79.99 and protects your passport from being read via radio waves while it is in your pocket. explain how you can achieve the same thing under $3.00
Answers: 3
question
Computers and Technology, 22.06.2019 01:00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
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
Arts, 04.06.2020 20:59
question
Biology, 04.06.2020 20:59
question
Mathematics, 04.06.2020 20:59
question
Mathematics, 04.06.2020 20:59
question
Mathematics, 04.06.2020 20:59
Questions on the website: 13722359