[SOLVED] CSE341 Lab 4

30.00 $

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

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

zip file icon Lab-4-6lnsht.zip (77 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

Write a program which takes in two 16 bit numbers and finds the total sum of all the numbers that are divisible by 4 within that range.

Task 02

Find the sum of the following sequence using loops and print the result a. 3 – 6 + 9 – 12 + 15 – 18 + 21

Task 03

Write a program which stores a large number in AX, stores another smaller number in BX. Now ask whether the user wants to divide or multiply. User will give ‘D’ for Division or ‘M’ for Multiplication. If the user wants to divide, then perform AX / BX using repeated subtraction and print the final remainder. And if the user wants to multiply then perform AX * BX using repeated summation and then print the final result. You will not be able to use the “DIV” or the “MUL” function here. And you do not have to take overflow into account i.e. the test cases should be done without using any numbers which can cause overflow.

  • Lab-4-6lnsht.zip