Create a program that verifies the strength of a password

Assignment Help C/C++ Programming
Reference no: EM131433652

Create a .cpp program that verifies the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password. Then, call a function, passing into it the password that they entered.

In the function, use whatever .cpp commands or built-in functions are available to ensure:
a. The password is at least 8 characters in length.
b. The password is mixed case (upper and lower).
c. You have at least one of these valid special characters in your password:
$ ! @ % ^ & * #

The function will determine if the password is strong enough and then output the correct message. Here is a sample run and output from the program:

First Run:
Enter a password: thisis
Your password length is too short. Please choose a password that is at least 8 characters long.
Your password is not a mixed case. Please choose a password with mixed case.
You do not have a valid special character in your password. Please add at least one special character.

Second Run:
Enter a password: thisismypassword
Your password is not a mixed case. Please choose a password with mixed case.
You do not have a valid special character in your password. Please add at least one special character.

Third Run:
Enter a password: Thisismypassword
You do not have a valid special character in your password. Please add at least one special character.

Fourth Run:
Enter a password: thisis!myPassWORD
Thank you. Your password is valid.

Reference no: EM131433652

Questions Cloud

Healthcare cost and utilization project : Source: Healthcare Cost and Utilization Project: United States Department of Health and Human Services. Retrieved from http://www.ahrq.gov/research/data/hcup/
Develop system conceptual design : Develop "system conceptual design". This assignment an individual assignment and will be submitted as a written report - design of a large system requires components that work together in a way
Assumptions about leadership different : How are your assumptions about leadership different now than they were in the beginning of the course? What does it mean to be a leader?
Devise a staffing strategy for the organizations : 1. How does an organization's investment in staffing benefit the organization after an applicant becomes an employee? 2. Devise a staffing strategy for the following organizations:
Create a program that verifies the strength of a password : Create a .cpp program that verifies the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password.
Concepts of preload and afterload : Lasix "reduces extravascular volume by inducing diuresis hence decrease preload and the work of the heart in pumping blood is decreased hence prevent progression of heart failure." Briefly explain the concepts of preload and afterload.
How could validation have saved sara development time : Most people use browsers that support images. Why is it important to support all browser types in this situation? How could validation have saved Sara development time? What other advantages would have come from initial validation?
Is there anything ms zorin can and should do : The prime candidate for the manager's position is Mr. Yalo, a recent immigrant from a country known for confining the roles for women. Ms. Zorin was alerted by other women engineers to expect unchallenging, trivial assignments from a supervisor wi..
What items are typically included in a job description : What items are typically included in a job description? What items are typically not shown? What is job analysis? How can you make use of the information it provides? Describe the types of information typically found in a job specification.

Reviews

len1433652

3/20/2017 3:55:20 AM

need this done by 9 PM tonight if possible, this is a beginning programming class so it should be level appropriate Create a .cpp program that verifies the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password.

Write a Review

C/C++ Programming Questions & Answers

  What is the difference between an object and a class

What is the difference between an object and a class? What is the difference between class and structure? What are virtual functions?

  Write a program that simulates the dial of a phone number

Write a program that simulates the dial of a phone number. The program will accept a phone number as input, and it will acknowledge the call by either writing an error message or the 8 digit phone number to the console window. The phone number may..

  Write a c++ program that determines density of a materials

Write a C++ program that determines the density of a materials, given the radius and mass of a sphere. This is a assignment similar to the exercise wc did in the lab last Friday.

  Writing a program in c that meets the following criteria

Include comments within the code to explain each of the functional areas.

  Use the getint and getintwithinrange methods

Use the getInt and getIntWithinRange methods to validate that each score ranges from 1 through 100 and add code that discards any extra entries at the prompt that asks if you want to enter another score to the application below.

  Write a program that displays the size of a population

Write a function that calculates the size of the population after a year. To calculate the new population after one year.

  Write a program that will read all the given information

Write a program that will read all this information for last month's sales and summarize the total sales per salesperson by product. All totals should be stored in the two-dimensional array sales.

  Compute the character with maximum number of connections

Compute the character with maximum number of connections print out the result - Network theory has a host of applications. One fun application is to find the central character in a novel.

  Pseudocode for constructing the reverse of an input string

For each position of the string starting at the end working backwards - Append the character at that position to the reverse of the string.

  Write a program that performs character processing

Write a program that performs character processing on 10 characters read in from a file, and writes the results to output files. Do NOT use loops or arrays to solve this problem.

  Program to find the sum & average of the given numbers

Write a program to find the sum & average of the given numbers using the while loop.- Write a program in C to find the sum and average of the given numbers stored in an array of n values.

  Write a program to convert miles to kilometers

Write a program to convert miles to kilometers. (Recall that 1 mi = 1.6093440 km.) Write a program to convert pounds to kilograms. (Recall that 1 kg = 2.205 lb.) Write a program to compute the area of A of a circle with radius r.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd