Code a for loop with the switch structure from1d and allow 4 attempts. Prompt the user to enter thequalified value. When the number entered is in the correctrange exit the loop (not the program) after one of the messages in1d is printed. Print the message “You’re out of attempts!” when itis the last attempt.
Expert Answer
An answer will be send to you shortly. . . . .