b. password strength analyser
A coding challenge
Objective
Write a console application that takes a password as input and evaluates its strength based on specific criteria. To demonstrate your algorithmic understanding of string manipulation, you must iterate through the string and evaluate the characters manually - do not use Regular Expressions (Regex).Requirements
Prompt the user to enter a password.
Evaluate the password against the following five criteria. Each met criterion awards 1 point:
It is at least 8 characters long.
It contains at least one uppercase letter.
It contains at least one lowercase letter.
It contains at least one numerical digit.
It contains at least one special symbol (e.g., !, @, #, $, %, ^, &, *).
Calculate the total score (out of 5).
Output the score and a final strength rating based on the following scale:
0 to 2 points: Weak
3 to 4 points: Medium
5 points: Strong
Stretch Goal
Add a loop so the program continually asks the user for new passwords until they type "exit", allowing them to test multiple passwords quickly.Last modified: September 6th, 2026
