Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) Write a Little Man program that accepts three values as input and produces th

ID: 3856826 • Letter: 1

Question

1) Write a Little Man program that accepts three values as input and produces the largest of the three as output.
Keep the following in mind while solving this problem.
It shows how simple instructions are combined to solve complex problems.
• It addresses the issue of separating algorithms from coding. Many students will attempt to code the solution without considering the algorithm first.
• It shows how even simple problems require a large number of instructions.
• It shows how many instructions are required just to move data around to get the data into the place it's required at any given time.


2) Draw a diagram for a memory unit that can accommodate 1K byte. Label all elements in your diagram such as memory address register, address decoder, memory data register. Consider your memory data register is 1 byte.

Explanation / Answer

****************************Solutions Question no 1.************************

Instruction:

1.First Think about Problem.

2.Second How can we solve this problem?

3.Third Make a rough solution for a problem.

4.Fourth Prepare a desired algorithm.

5.Algorithim gives you.....

<5.1> Fast solution.

<5.2> Complexicity solution.

<5.3> Make a concept in ur mind similar like this programm.

Programme for problem.

int a,b,c;

int max=0;

if(a>b&&a>c)

{

max=a;

}

else if(b>a&&b>c)

{

max=b;

}

else

max=c;