1. A) An algorithm has been written in pseudocode to input the weight of 500 items and reject any that are over-
weight or under-weight, then print the percentage rejected.
Count 1
Reject to
Over 62
Under 58
REPEAT
INPUT Item Weight
IF Item Weight > Over AND Item Weight < Under
THEN
Reject Reject - 1
ENDIE
Count Count + 1
UNTIL Count >= 500
Reject Reject / 100
PRINT "Percentage rejected is", Reject
Find the four errors in the pseudocode and suggest a correction for each error,
Error 1
Correction
Error 2
10.9.20
Answers
Answered by
0
Answer:
have any questions you may
Similar questions