The program asks the user to enter their full name and converts it to uppercase before displaying a greeting message. It then prompts the user to enter a password, converts it to lowercase and removes whitespace before validating that the password is exactly 8 characters with no numbers or spaces, displaying an error if invalid.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
30 views
Exercise 2 - Password Generation
The program asks the user to enter their full name and converts it to uppercase before displaying a greeting message. It then prompts the user to enter a password, converts it to lowercase and removes whitespace before validating that the password is exactly 8 characters with no numbers or spaces, displaying an error if invalid.