Show how you would implement a DO-WHILE statement using Little Man…

Question Answered step-by-step Show how you would implement a DO-WHILE statement using Little Man… Show how you would implement a DO-WHILE statement using Little Man instructions.6.17 The input data values in our problems have always been entered in the order thatthey were to be used. This is not always possible or convenient. Can you think of asimple way to accept input data in the wrong order and still use it correctly?6.18 Suppose the Little Man Computer had been implemented as a 16-bit binarymachine. Assume that the binary LMC provides the same instruction set, with thesame op codes (in binary, of course), and the same instruction format (op codefollowed by address). How many bits would be required for the op code portionof the instruction? How many mailboxes could the binary machine accommodate?What is the range of 2’s complement data that this machine could handle?6.19 The original version of the Little Man Computer used op code 7 (i.e., instruction700) for a COFFEE BREAK instruction instead of op code 0. What is the advantage ofusing 000 for the COB instruction instead of 700? (Hint: Consider what happens ifthe programmer forgets to put a COB instruction at the end of a program.)6.20 When we discussed conditional branching we claimed that a BRANCH NEGATIVEinstruction is not necessary. Show a sequence of BRANCH instructions that will causea program to branch to location 50 if the value in the calculator is negative.6.21 Show a sequence of instructions that will cause a program to branch to location 75if the value in the calculator is greater than zero. Give three examples of the implications of these properties (separately or incombination) on the engineering of large-scale, widely distributed systems.[9 marks](b) (i) Define role-based access control (RBAC).(ii) Outline how RBAC could be used for a national healthcare systemcomprising many administration domains such as primary care practices,hospitals, specialist clinics, etc. Principals may, from time to time, workin domains other than their home domain, and must be authorised todo so.(iii) A national Electronic Health Record (EHR) service must be accessiblefrom all domains. It is required by law that access control policy shouldbe able to capture exclusion of principals and relationships between them.How could this requirement be met in an RBAC design? (b) What is accomplished by the lateral signal flows within both plexiform layersof the mammalian retina, in terms of spatial and temporal image processingand coding? [3 marks](c) Give finite difference operators that could be applied to 1-dimensional discretedata (such as a row of pixels) in order to approximate the 1st and 2ndderivatives, ddx and d2dx2 . How would your finite difference operators actuallybe applied to the row of pixels? What is the benefit of using a 2nd finitedifference (or derivative) instead of a 1st finite difference (or derivative) foredge detection?(d) Explain the formal mathematical similarity between the “eigenface”representation for face recognition, and an ordinary Fourier transform, in thefollowing respects:(i) Why are they both called linear transforms, and what is the “innerproduct” operation in each case(ii) What is a projection coefficient and an expansion coefficient in each case?[1 mark](iii) What is the orthogonal basis in each case, and what is meant byorthogonality? .Write  program in C++ to print a welcome text in a separate line.Write  program in C++ to print the sum of two numbersWrite  program in C++ to display the operation of pre and post increment and decrement. (a) Distinguish between the terms abstract class and interface. [3 marks](b) Explain in detail what happens when class GPS below is instantiated noting,in particular, any assignments that are made. [17 marks]class GPS{ public int[][] a = new int[4][4];private int[] i = new int[1];private int[] j = new int[1];public GPS(){ this.j[0] = this.gps(this.j, 4, new Pi(), new Fg());}private int gps(int[] i, final int N, Pass z, Feval v){ i[0] = 0;while (i[0]