Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN MIPS AND MUST RUN IN QTSPIM Write a MIPS program that asks users to setup a password (length between 8 and 12; with only

IN MIPS AND MUST RUN IN QTSPIM

image text in transcribed

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 Lablablab Password is setup

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions