Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Understand the role of the data link layer

Answered: 1 week ago

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago