[SOLVED] CSE341 Assignment 4

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 Lab04-7nmknd.zip (100.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

Task 01

CSE341: Microprocessors
Department of Computer Science and Engineering

Assignment 04 (Lab 05)

Write a program which takes in two numbers and finds all the numbers that are divisible by 5 within that range.

Task 02

Find the sum of the following sequence using loops print the result a. 1 − 2 + 4 − 8 + 16 − …… + 512

Task 03

Write a program which stores a number in AX, stores another number in BX and multiplies them using repeated summation and prints the result. You will not be able to use the “MUL” function here. And you do not have to take overflow into account.

Task 04

Write a program that will prompt the user to enter a hex digit character (“0” … “9” or “A”… “F”), display it on the next line in decimal, and ask the user if he or she wants to do it again. If the user types “y” or “Y”, the program repeats; if the user types “n” or “N” the program terminates. If the user enters an illegal character, prompt the user to try again

Sample execution:

ENTER A HEX DIGIT: 9
IN DECIMAL IT IS 9
DO YOU WANT TO DO IT AGAIN? : y ENTER A HEX DIGIT: c
ILLEGAL CHARACTER, INSERT AGAIN: C IN DECIMAL IT IS 12 DOYOUWANTTODOITAGAIN?: N

  • Lab04-7nmknd.zip