Program requests password to display information of author, Python Programming

Write a program 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), that's a nice name".

SAMPLE OUTPUT (including author/program information)

Program author: Barney Rubble
ID#: 1234567
Program 3-LOOPS 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, that's a nice name.

 

Posted Date: 3/21/2013 3:17:41 AM | Location : United States







Related Discussions:- Program requests password to display information of author, Assignment Help, Ask Question on Program requests password to display information of author, Get Answer, Expert's Help, Program requests password to display information of author Discussions

Write discussion on Program requests password to display information of author
Your posts are moderated
Related Questions
In Python, the fundamental abstraction of a computation is as a procedure (other  books call them "functions" instead; we will end  up  using  both  values).   A function that  tak

from urllib2 import urlopen var= ('' response">http://placekitten.com'') response = kittens.read(body) body = response[559:1000] print ''Kittens:'', response

protocol rdt2.2 considers there is a bit errors between sender to receiver and also from receiver to sender. So now we have to consider checking bit errors introduced in reply from

Procedures in python Procedures are computer program creates that let us capture common patterns of computation by: Grouping together sequences of statements

Your task is to construct a translator from the subset of Python in Project 3 intocontinuation-passing style (CPS). Of course, the expected way of accomplishing this is to trans

how to use re.sub to seperate distint words and phrases when translating text from English to Spanish or vis versa in python programming

what are the issues assciated with top-down analysis

Non-local references So far, whenever we needed to compute a variable, there  was  a binding for that  variable in the 'local' environment (the environment in which  we were e

how to make a python programme for van der waals equation of state with surface discontinouty