Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program problem [Part I Write a C+ program to validate a user's password. A user should be able to enter his/her preferred password via

C++ Program problem

image text in transcribed

[Part I Write a C+ program to validate a user's password. A user should be able to enter his/her preferred password via keyboard input. Your program checks for specific criteria given below and returns Valid Password or Invalid Password. If the user's preferred password is invalid, it also outputs different reasons. Write separate functions to check the following criteria of the preferred password (each function returns true if it meets a certain criteria): . It is at least eight characters long . It contains at least one uppercase letter and one lower case letter . It contains at least one digit . It contains at least one of these four characters: ! @ # S Sample output #1 Please enter your preferred password: UDM@orano2818 Valid Program ended with exit code: Sample output #2: Please enter your preferred password: UaM2818 Invalid Reason1: your password should contain at least eight characters Reason2: your password should contain at least one of the four special characters "eS Progran ended with exit code: e [Part III Extra creditLS% Extend your code to save a valid password in a text file. Once your program detects a valid password, apply below gncryntion aluprithm before saving it. Encryption algorithm is based on corresponding ASCII values of different characters in the valid password. For each character in the password, add +1 if it is alphanumeric. For example, if the character is a uppercase letter, lower case letter, or a digit: encrypted character (character1); . add-1 if it is one of the four special characters. For example, if the character is one of these four characters ! @ # S: encrypted. Character-(character-1); Example: UoM@orono2018 should be encrypted as VPN?pspop3129

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago