# 01:198:110 Lecture 14: Compu 10-18

01:198:110 verified notes

14/28View all

## Document Summary

Pseudocode (this is the scratch blocks you use in the scratch animation. Sentinel value - way for a loop to stop (dummy value) - improbable value. Repeat loops - count controlled loop, for when there is exactly ten students in the class assignments, have to be able to write it out in a test, won"t be using computer/blocks) (output = what sprite says) Pseudocode: code from above if don"t know number of people in class. Ask for the number of students (variable: numgrades) Suppose a teacher wants to find the average of the test scores of the students in the class. there are 10 students in the class. Teacher needs to know how many students failed the test (got under 60%) How change code to meet these requirements/answer these questions. Put an if statement in a forever loop to end the loop. Sum - 0 1 3 6 10 15 21.