subject

Write piece of code that reads a shorthand text description of a color and prints the longer equivalent. acceptable color b for blue, g for green, and r for red. if the user types something other than b, g, or r, the program print an error message. make your program case-insensitive so that the user can type an uppercase or lowercase letter. here are some example executions: what color do you want? b you have chosen blue. what color do you want? g you have chosen green. what color do you want?

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:40, debo4965
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
image
Computers and Technology, 22.06.2019 06:00, Wolfie215
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
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, 24.06.2019 22:10, mikaylaaaaa
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
You know the right answer?
Write piece of code that reads a shorthand text description of a color and prints the longer equival...

Questions in other subjects:

Konu
Mathematics, 23.10.2020 19:20