[SOLVED] CSE316 Offline 2-Conditional Statements

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon offline2-8nmqne.zip (59.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

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

  • offline2-8nmqne.zip