Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE PYTHON Create a program that prompts the user for a username and password. The correct username should be python and the correct password should

USE PYTHON

Create a program that prompts the user for a username and password. The correct username should be python and the correct password should be csci135. See below for example output. (Different messages depending on if user name or password are correct.) Only allow the user to make 3 attempts.

Welcome to my secret program! Please enter your username: Trish Please enter your password: Duce Invalid username and password Please enter your username: Trish Please enter your password: csci135 Invalid user name Please enter your username: python Please enter your password: Duce Invalid password Too many attempts! You are locked out! 

Example output if username and password are correct.

Welcome to my secret program! Please enter your username: python Please enter your password: csci135 Thanks for entering the correct username and password! I hope you have a GREAT day!! 

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago