Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write a code based on the following instruction and add comments to make the code clear. please write the code for extra credit part
Please write a code based on the following instruction and add comments to make the code clear. please write the code for extra credit part as well and the expected output is added below . THANKS
HW3-Basic Version (Graded out of 100) You will write the code for a password validation function, and demonstrate your function is correct with a driver. To be valid, a password must Be at least 8 characters and at most 10 characters Have at least one upper case letter, at least one lower case letter, at least one digit and at least one special character. Not contain any character which is not a letter, digit or special character. A special character is one of the following characters: #, $, %, &. ?, @, * 1. Additional requirements for basic version- Make sure you meet all the requirements to avoid losing points a) Functions You are required to implement your program with the following function. You can implement additional functions, as you see fit, to make your program more modular isValidPassword: takes as argument a string and returns true if the string is a valid password. Else it returns false. b) Style Make sure you follow the style requirements to avoid losing points c) Outline of main Your main function will consist of a driver for isValidPassword
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started