Question
Please help me out asap on both problems, Do all of these: step bu step Thank you Problem #1 Fill in the values for binary,
Please help me out asap on both problems, Do all of these: step bu step Thank you
Problem #1 Fill in the values for binary, decimal, and hexadecimal values in the following table:
8-bit Unsigned Binary | Decimal (unsigned) | Decimal (two's comp) | Hexadecimal |
66 | |||
1001 0101 | |||
-111 | |||
0xef | |||
0111 1110 | |||
222 | |||
0x4f | |||
-102 |
please note : I need the asm file and also plese check the output before you post your answer?
Problem #2 Write a program that inputs 3 numbers A, B, and C. Your program must decide which number is largest, which number is the middle, and which number is the smallest. Finally, it must print out the three numbers in order from smallest to largest. So, for example, if A < B and B > C and A < C then it should print the numbers like so: A C B
If B < A and C < A and C < B then your program should print the numbers like this:
C B A
There are six possible ways to print three numbers so you may enumerate all the ways to print the numbers, or you may use a more elegant method such as sorting. After printing three numbers, the program MUST return to the beginning and repeat the process by taking 3 more numbers as input. If input number A is 0 then exit the program.
Here is a sample run:
Enter number
A: 55 Enter number
B: 26 Enter number
C: 66 26 55 66
Enter number A: 4
Enter number B: 5
Enter number C: 1
1 4 5
Enter number A: 0
Now the program ends. User input is written in italics (you do not need to output italics for user input).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started