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, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
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
question
Mathematics, 10.05.2021 17:50
question
Mathematics, 10.05.2021 17:50
Questions on the website: 13722361