The pseudocode fragment contains nested for loops. The outer loop iterates from i=1 to 5. The inner loop iterates from j=i+1 to 8 for each iteration of the outer loop. A variable count is increased each time the inner and outer loops iterate.
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
please help me with these parts of this question thank you .pdf
1. please help me with these parts of this question thank you
Question 1: Consider the following pseudocode fragment and answer corresponding questions.
(For each question, you should clearly show steps about how you get the answer.) (20 points)
count:=0Fori=1to5Forj=i+1to8count:=count+ij End-for a) For the iteration of the outer loop where i=
3, how many times does the inner loop iterate?b) How many times is the variable "count"
increased? c) Suppose i=4, what is the value of "count" after the execution of inner loop? d) What
is the final value of "count" after the execution of this nested loop?