Question: (C3,C01,POI) QUESTION 1 (a) Sketch a flowchart to determine multiples of 4 in between 2 integers entered. Sample output is described in Figure 1. Enter

 (C3,C01,POI) QUESTION 1 (a) Sketch a flowchart to determine multiples of

(C3,C01,POI) QUESTION 1 (a) Sketch a flowchart to determine multiples of 4 in between 2 integers entered. Sample output is described in Figure 1. Enter 2 integers :5 20 8 is a multiple of 4 12 is a multiple of 4 16 is a multiple of 4 20 is a multiple of 4 Figure 1 [5 Marks] (b) Write printf statement(s) to have the output as described in Figure 2. Given variable a = 3301 and variable b = 2.567. X X 33 016 = 2 56 Figure 2 (Hint: variable a is to print right justify and variable b is to print left justify] ES Marks] (C3, COI, POI) QUESTION 2 Predict the output values for variable sine and cosine of the program segment in Figure 3 if the input value sine - 2. Show your work swatch (sine) JON case 1: case 2: sine -- 1; case 3: cosine - (sine > 1)? 11: 44; case 4: cosine = sinett; break; default: cosine- Figure 3 [4 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!