151k views
1 vote
What will be displayed if this algorithm is executed?

Set count to 0
REPEAT
call in the next student
ask the student their GPA
IF the GPA is greater than 3.2
Congratulate the student
UNTIL all students have been called
Display count

1 Answer

3 votes

Answer:

The correct answer for the given question is 0.

Step-by-step explanation:

In this algorithm initially the count variable is initialized by 0 after that next instruction is executed and user take the input for their GPA .After that check the condition if GPA>3.2 it print " Congratulate the student" and finally printing the value count .it means the value of count is 0 because their are no increment in the value of count.

User Notitze
by
6.4k points