Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python, write the following program, high school question, please keep simple 7.2 Code Practice: Question 2 Instructions Write a program to generate passwords. The

In python, write the following program, high school question, please keep simple

7.2 Code Practice: Question 2

Instructions

Write a program to generate passwords. The program should ask the user for a phrase and number, and then create the password based on our special algorithm. The algorithm to create the password is as follows:

  1. If the users input word is less than 8 characters, output Password not long enough.
  2. If the users input word is greater than or equal to 8 characters, do the following:
    1. Replace e with @
    2. Replace s or S with $
    3. Replace t or T with +
    4. Capitalize the word and add the number to the end.

Ever wonder why strong passwords are important? Read here (Links to an external site.) for more information on strong passwords.

Sample Run 1

Enter your word: zebras

Enter a number: 62

Password not long enough.

Sample Run 2

Enter your word: newyorkcity

Enter a number: 892

Password: N@wyorkci+y892

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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions