Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 user

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 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:
Enter a first name: steve
Enter a first name: bert
Enter a first name: sandra
Enter a first name: mike
Congratulations, you entered my name!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

=+How many children do you have?

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago