Computer Science 240 XXXXXXXXXXName………….……………………………………………… row……… Assignment No.1 XXXXXXXXXXName………………………………………………………….. Find...

1 answer below »
It is Computer Science, Assembly Language - 240 assignment. I need you to show the work on all problems.


Computer Science 240 Name………….……………………………………………… row……… Assignment No.1 Name………………………………………………………….. Find X in the following problems Problems Answers 1. (243)10 = (X) 16 X = 2. (ABC)16 = (X)8 X = 3. (1AB)16 = (X )10 X = 4. (1101 1101 )2 = ( X ) 8 X = 5. (19.375)10 = (X) 8 X = 6. (11.0001)2 = (X) 10 X = 7. (412)5 = (X) 4 X = 8. (10111.11)2=(X)8 X = 9. (B14.1)16 = (X)10 X = 10. (255)10 = (X) 5 X= 11. Perform the following by taking the 2’s complement of the negative number. Use 8 bits to store each number X = 175 -200 Y= 200 - 250 X =( )2 =( )10 Y=( )2 =( )10 p2 Computer Science 240 Assignment No.2 (ADD, SUB, IMUL, IDIV instruc4ons) Write programs with the following I/O (All calcula8ons must be done in assembly) 1. All variables are short type --------------------MENU------------------ Drinks…………………………. $2 Sandwiches……………………. $4 How many drinks? 3 How many sandwiches: 3 Your total bill $18 2. All sides are int type /|\ ------------------------- / | \ | | a / | \ b | | width / h| \ | | / | \ | | -------------- ------------------------ C length Enter the values of a,b,c, and h for the triangle: 4 6 9 10 Enter the length and the width of the rectangle: 15 10 Triangle Area……………………………………45 Perimeter…………………………..19 Rectangle Area………………………………….150 Perimeter ………………………….50 3. Use the following formula for the temperature conversion: C=5(F-32)/9, C and F are type short Enter temperature in Fahrenheit: 95 95 F⁰ is 35 C⁰ 4. Enter a 3 digit int number: 358 The total of digits in 358 is 16 q1 Computer Science 240 Quiz No.1 Name …………………………………………………row #....… Convert 111 base 10 to base 16 Convert 67 base 5 to base 8 Convert ( 5 . 67) from base 10 to base 8 Convert ( B.7) from base 16 to base 10 Compute the following at base 2. 26 and 30 are at base 10. Show all work for full credit and leave your answer at base 2 90 -20 ------------
Answered Same DayFeb 06, 2023

Answer To: Computer Science 240 XXXXXXXXXXName………….……………………………………………… row………...

Nidhi answered on Feb 07 2023
38 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here