CSE341 Lab 4 Solved

30.00 $

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

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

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