CI 222 CU Flowchart Pseudo Codes and Operation Numbers Project

Part A. Create a flowchart for the following problem.Input: three different integers: a, b, c. output: The greatest from the given three numbers.For simplicity, we assume that all numbers are different.Part B.Find out the outcome of the following pseudo codes1. [3 marks]a = 1While a 10print in a line the value of aa = a + 4End whilePrint “bye”2. [4 marks]a = 1While a 10if a mod 2 is 0 thenprint in a line “a is even”elseprint in a line “a is odd”end ifa = a + 3End whilePrint “bye”3. [4 marks]a = 2If a mod 2 is 0 thenWhile a 10print in a line the value of aa = a + 1End whileWhile a 5print in a line the value of aa = a + 1End whileEnd ifPrint “bye”Part C:1. [ 4 marks]Compute the operation number for the following code block:a = 1While a 6print in a line the value of aa = a + 1End whilePrint “bye”2. [4 marks]Compute the operation number for the following code block:a = 1While a 12print in a line the value of aa = a + 3End whilePrint “bye”3. [5 marks]Compute the operation number for the following code block:a = 3While a 7if a mod 2 is 0 thenprint in a line “a is even”elseprint in a line “a is odd”end ifa = a + 1End while4. [5 marks]Compute the operation number for the following code block:a = 3If a mod 2 is 0 thenWhile a 9print in a line the value of aa = a + 1End whileprint in a line “this is else part”End ifPrint “bye”6. [7 marks]Explain the following nested loop with output.a = 1While a 3b = 1While b 4print in a line the value of bb = b + 1end whilea = a + 1End While

× How can I help you?