Question: Please type your code: Assignment 5 Write a MIPS program that asks users to setup a password (length between 8 and 12; with only upper

Please type your code:

Please type your code: Assignment 5 Write a MIPS program that asks

Assignment 5 Write a MIPS program that asks users to setup a password (length between 8 and 12; with only upper and lower case letters). Prompt the user to enter the password string and check if it meets the requirements. If the password string does not meet the requirements, print out an error message and prompt the user for a second try. In the case the user does not enter the proper password string again, display an error message and terminate the program. Otherwise, prompt the user for re-entering the password string. If the entered string is correct, display an appropriate message and terminate the program. If not, give the user two more chances before terminating the program with an error message. Example of program output on console: Set a password: Lab Failed. Please enter a password with the size of 8 to 12! Set a password: Lablablab Re-enter the password: Lab Incorrect, you have 2 more chance! Please re-enter the password: Lablablab Password is setup

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!