Question
Using the LC3 simulator, write a program where the user must enter a password that satisfies the following criteria: o at most 12 characters and
Using the LC3 simulator, write a program where the user must enter a password that satisfies the following criteria: o at most 12 characters and at least 8 characters o may contain only capital A through Z, “*” or “ ” (space) characters - The process must continue until the user enters a valid password. To pull this off, you’ll need to utilize TRAPS, Branches, Loads/Stores, and pretty much everything LC3 has to offer.
The program works as follows: o Ask to enter a password of up to 12 characters. o If password has any characters that are not allowed, warn the user that at least one character is not allowed, and ask for another password o Once the user enters a password that only contains allowed characters, print “Password created” and halt the program.
Step by Step Solution
3.58 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Answer ORIG x3000 BR Main Functions FILL Testpack option 0 FILL Testunpack option 1 FILL TestprintCC option 2 FILL Teststrlen option 3 FILL Teststrcpy option 4 FILL Teststrcat option 5 FILL Teststrcmp ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started