Question: Create an infinite while loop. Inside the loop, prompt the user to enter a person s first name. The program should continue to prompt the
Create an infinite while loop. Inside the loop, prompt the user to enter a persons first name. The program should continue to prompt the user for a first name until the user types in your first name. Using an if statement check to see if the entered name equals yours. You can use the upper string method to convert the user input to uppercase. Print out a congratulations message when the user types in the correct name. Use the break statement to end the loop once the correct name is typed into the console.
Example output is shown below. Note this output is for my name MIKE Ensure your program works for your name:
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
