Conditional Statements using Assembly Language Programming
Q1: The user will input 3 numbers (single digit) and the program will output the second highest number. The sample input and output is given below:
Sample Input 9, 5, 8
9, 9, 6
9, 9, 9
9, 6, 6
Sample Output
8
6
All the numbers are equal 6
Q2: Suppose, a user is setting a password. Your password policy requires that the password contains:
• At least one upper case character (41H-5AH)
• At least one lower case character (61H-7AH)
• At least one digit (30H-39H)
• Other printable characters in the range 21H-7EH are allowed but not required
You will take as input a series of characters until the first key not listed above is pressed. You will then print whether the series of characters represent a valid password (i.e. contains at least one uppercase letter, lowercase letter and digit).
Sample Input password PassW0rd Pa$$w0rd Pass Word
Sample Output Invalid password Valid password Valid password Invalid password
Submission Deadline: 10 PM, March 13, 2021
* While you are encouraged to talk to your peers, ask help from teachers, and search relevant resources from online, under no circumstances should you copy code from any source. If found out, you will receive full 100% negative marks.
1




