Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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

1 answer below »
Computer Science 240 XXXXXXXXXXName………….……………………………………………… row………
Assignment No.1 XXXXXXXXXXName…………………………………………………………..

Find X in the following problems
Problems

Answers
XXXXXXXXXX = (X) 16


X =
2. (ABC)16 = (X)8


X =
3. (1AB)16 = (X )10


X =
XXXXXXXXXX = ( X ) 8


X =
XXXXXXXXXX = (X) 8


X =
XXXXXXXXXX = (X) 10


X =
XXXXXXXXXX = (X) 4


X =
XXXXXXXXXX=(X)8


X =
9. (B14.1)16 = (X)10


X =
XXXXXXXXXX = (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 = XXXXXXXXXX
Y= XXXXXXXXXX



X =( XXXXXXXXXX2 =( XXXXXXXXXX10

Y=( XXXXXXXXXX2 =( XXXXXXXXXX10

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
XXXXXXXXXXMENU------------------
Drinks…………………………. $2
Sandwiches……………………. $4
XXXXXXXXXXHow many drinks? 3
XXXXXXXXXXHow many sandwiches: 3
XXXXXXXXXXYour total bill $18
2. All sides are int type
/|\ -------------------------
/ | \ | |
XXXXXXXXXXa / | \ b | | width
/ h| \ | |
/ | \ | |
-------------- ------------------------
XXXXXXXXXXC XXXXXXXXXXlength
Enter the values of a,b,c, and h for the triangle: XXXXXXXXXX
Enter the length and the width of the rectangle: XXXXXXXXXX
XXXXXXXXXXTriangle
XXXXXXXXXXArea……………………………………45
XXXXXXXXXXPerimeter…………………………..19
XXXXXXXXXXRectangle
XXXXXXXXXXArea………………………………….150
XXXXXXXXXXPerimeter ………………………….50
3. Use the following formula for the temperature conversion: C=5(F-32)/9, C and F are type short
XXXXXXXXXXEnter temperature in Fahrenheit: 95
XXXXXXXXXXF⁰ is 35 C⁰
4. Enter a 3 digit int number: 358
XXXXXXXXXXThe total of digits in 358 is 16

q1
Computer Science 240
Quiz No.1 XXXXXXXXXXName …………………………………………………row #....…
Convert 111 base 10 to base 16 Convert 67 base 5 to base 8
Convert XXXXXXXXXXfrom base 10 to base 8 Convert ( B.7) from base 16 to base 10
Compute the following at base XXXXXXXXXXand 30 are at base 10. Show all work for full credit and leave your
answer at base 2
90
-20
------------
Answered Same Day Feb 06, 2023

Solution

Nidhi answered on Feb 07 2023
40 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