Question: Order the blocks below to create a case statement driven by the user's response. Display a prompt to the user, asking which color do you
Order the blocks below to create a case statement driven by the
user's response.
Display a prompt to the user, asking which color do
you like best
Read the user's input into a variable called color
Write a case statement, checking for the following
conditions in this order:
Blue
Red
Yellow
If the user enters anything else, display what a
lovely color!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
