You are on page 1of 1

Exercise 2

Write a program that will ask a user to enter their full name e.g. “Sally Susanson”

 Convert the full name uppercase


 Display a message to say “Hello SALLY SUSANSON”

Ask the user to enter a new password

 Convert the password to lowercase


 Remove any white space to the left or right of the password characters

Perform these validation checks:

 Passwords must be exactly 8 characters long


 Passwords cannot contain any numbers
 Passwords cannot contain spaces

Display an error message if the password doesn’t meet any of the above criteria

You might also like