Question: The programming language is C ++ Write a switch statements to examine the value of a char type variable called color and print one of

The programming language is C ++
Write a switch statements to examine the value of a char type variable called color and print one of the following messages, depending on the character assigned to color. RED, if K is assigned to color. . GREEN, if G is assigned to color. . BLUE, if B is assigned to color. ERROR ! Invalid Color, if user enters invalid characters (i.e., A, T, X,..)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
