Have a question?
Message sent Close

CIS170C Programming Password Requirements Program DeVry University

0
0 reviews
  • Description
  • Full Document
Blur-Preview

DeVry University

CIS170C Programming Password Requirements Program DeVry University

1) Code
// —————————————————————
// Programming Assignment: Week 5 Lab Report
// Developer: Student
// Date Written: 08/04/2017
// Purpose: Password Requirements Program
// —————————————————————
#include <iostream>
#include <cstring>
#include <cctype>
using namespace std;
//Funtion Prototype
bool isValid(char[]);
//Global Constant
const int SIZE = 80,
MIN = 6;
int main()
{
char password[SIZE];
while (true) {
cout << “Password requirements:\n”;
cout << “The password should be at least 6 characters long.\n”;
cout << “The password should contain at least one uppercase\n”;
cout << “and one lowercase letter.\n”;
cout << “The password should have at least one digit.\n”;
cout << “\nEnter a password:”;
cin >> password; //Input password
if (isValid(password)) {

Preview

CIS170C Programming Password Requirements Program DeVry University

NOTE: Please check the details before purchasing the document.

error: