Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Microprocessors (CSE) This questions are designed on the basic of microprocessors and EMU 8086 [THIS CODE SHOULD BE IN ASSEMBLY LANGUAGE] Q1. Input Student ID(16201049)

Microprocessors (CSE)

This questions are designed on the basic of microprocessors and EMU 8086 [THIS CODE SHOULD BE IN ASSEMBLY LANGUAGE]

Q1. Input Student ID(16201049) and print it using STACK operations. Implement this using MACRO/PROCEDURE.

Q2. Write a MACRO to find the maximum and write a PROCEDURE to find the minimum between three numbers. You have to do it in a single code file.

Sample execution: User input: 2 3 4

Output: Maximum number is 4 Minimum number is 1

Q3. Write a program that determines whether a number is divisible by the sum of its digits or not. If divisible, then print YES else print NO.

image text in transcribed

Q4. Take an array of size n, then taking input from the user, sort the array in the ascending and descending order. (FOR ID (16201049), do the ascending, and ID(17101124) do the descending).

Q5. Write a program that prints the number of consonants found in a given string.

A sample is given below: Given String: umbrella

Number of consonants: 5

Q6. Write an assembly program to print the following pattern below. Assume that all inputs are single character numbers. Hardcoding the pattern inside your code will yield 0 marks.

image text in transcribed

Input: 123 Input: 12 Output: NO Output: YES Here: Sum of 1+2+3 = 6, and 123 is not divisible by 6. In the case of 12, the sum of 1+2 = 3, and 12 is divided by 3. So, implement the logic and write the code. Input Output Input Output *** ****

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Question

Discuss the differences between scholarships and fellowships.

Answered: 1 week ago