Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in PYTHON that requests a password after the author/program information is displayed. Make the password hello. The program should then ask the

Write a program in PYTHON that requests a password after the author/program information is displayed. Make the password "hello". The program should then ask the user for their name: if the name entered is the same as your name, the program should respond with "What a great name!"; if they enter "Madonna" or "Cher", the program should respond "May I have your autograph, please?". For any other input, the program should respond with "(input name), thats a nice name".

SAMPLE OUTPUT (including author/program information)

Program author: Barney Rubble

ID#: 1234567

Program 3LOOPS AND IF CONDITIONS

Password? unicorn

Password? opus

Password? hello

Welcome to the second half of the program!

What is your name? Barney

What a great name!

ALTERNATE OUTPUTS

What is your name? Cher

May I have your autograph, please?

What is your name? Bill

Bill, thats a nice name.

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions