Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Write a program (passwords.py) that will generate and print a passwords according to the following rules: Starts with an uppercase letter. . Includes

image text in transcribed

image text in transcribed

. Write a program (passwords.py) that will generate and print a passwords according to the following rules: " Starts with an uppercase letter. . Includes one special character randomly selected from the string. " ! @#$" Includes at least six lower-case letters. Ends with one integer in the range of 0 to 9 (inclusive) The program should prompt the user for the length of the password, which should be at least 9). The user should decide if they want to create more passwords as shown in the sample output below. Implementation details: . The valid ASCII codes for uppercase characters are 65 . . 90, and for lowercase characters are 97122 Hint: use the chr() function. Your program should verify that the user provided a valid input for the size of the password, otherwise it should prompt the user again. Invalid input would be anything that is not a number or any integer 9. The size of the password determines the number of lowercase characters that the password will include. o You should avoid infinite loops and the break statement. To get full points your program's output should be very similar to the following sample output (the bold and underlined part represents the user-input). Sample Output: Enter the size of your password: 10 Suggested password: Y!mebj ivm 7 Are you satisfied with your password (yeso)2 No

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions