Write a piece of code that reads a shorthand text description of a color and prints the
Question:
Write a piece of code that reads a shorthand text description of a color and prints the longer equivalent. Acceptable color names are B for Blue , G for Green , and R for Red . If the user types something other than B , G , or R , the program should 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:
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: