Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 10a COMSC-44 Password Verifier Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users'

image text in transcribed

Homework 10a COMSC-44 Password Verifier Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users' passwords meet the following criteria . The password should be at least seven characters long; . The password should contain at least one uppercase and at least one lowercase letter . The password should have at least one digit. . The password should contain at least one non-alpha, non-digit, non-space, punctuation character Write a program that asks for a password and then verifies that it meets the stated criteria. If it doesn't, the program should display a message telling the user why. Call your program: MyName-Hwrk10A.cpp. Be sure to put your name as a comment in the code as well as display it in the screen output. [Hint: 1) You'll likely want to make use of some of the character functions shown in Table 10-1 on page 558 of Starting Out With C++, ninth Edition.] [Hint 2) If you don't preset an array of char, you will have no idea what is sitting in the array beyond what you input from the keyboard. This can lead to difficulties.] Homework 10b COMSC-44 Word Counter Write a function that accepts a pointer to a C-string as an argument and returns the number of words contained in the string. For instance, if the string argument is "Four Score and seven years ago" the function should return the number 6. Demonstrate the function in a program that asks the user to input a string and then passes it to the function. The number of words in the string should be displayed on the screen. We will be using the result of this program in our next week's homework, so it will be a very useful function for us to have in our tool kit. Call your program: MyName- Hwrk10B.cpp. Be sure to put your name as a comment in the code as well as display it in the screen output. Allow for sentences of up to 100 characters

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago