Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program using only While loops Create a variable called oldPassword and set it to badpassword AAAAAAAAAAA Ask the user this question: Enter

image text in transcribed

Write a python program using only While loops Create a variable called oldPassword and set it to "badpassword" AAAAAAAAAAA Ask the user this question: "Enter a new password:" The password is OK if all of these conditions are met: 1) the password is not the string "1234", "mypassword", or "jackrabbit" 2) the length of the password is a minimum of 4 characters long and a maximum of 16 characters long 3) the password is not the same as the string in old password If the password follows the 3 rules above, output this string: Password Change Accepted. and stop. Otherwise, output ONE of these strings depending on the condition violated: The new password must contain between 4 and 16 characters! The new password must be different than the old one! The new password cannot be 'mypassword', '1234', or 'jackrabbit'! and then start over by asking them to "Enter a password:" If the user enters an empty string (by just pressing ENTER), print this string: Password Change Canceled and stop

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions