Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program Description: Write a program to ask user to enter a password and validity the password. The password should be 8 - 2 0 characters

Program Description:
Write a program to ask user to enter a password and validity the password. The password should be 8-20
characters long (8 is acceptable and 20 is acceptable), it should contain at least one uppercase letter and one
lower case letter. The password should contain at least one digit, and at least one symbol other than
alphabets or numbers. Most importantly, a password may not contain any white space.
Functions:
You will need the following functions, do not change function header including the parameter. Add more if
needed. Your main function should be less than half a page.
You should have the following variables in main:
string password;
The program should ask for a password and then verify that it meets the stated criteria. If it doesn't, the
program should display a message telling the user why it fails with all the applicable mistakes, and then ask
for re-entry until it is correct.
Other requirements:
1. Follow programming style guideline very carefully.
2. Your output style has to match with my output shown (although you can try different user input).
3. All functions must have prototypes.
4. Your main function should only declare the variables and call the functions. (shorter than half a page)
5. Store all values as variables, do not hardcode any values.. Use constant variables as much as possible
6. NO global variables in this assignment
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago