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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
You know the right answer?
Write piece of code that reads a shorthand text description of a color and prints the longer equival...
Questions
question
Mathematics, 20.07.2020 17:01
question
Mathematics, 20.07.2020 17:01
question
Mathematics, 20.07.2020 17:01