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

105 views2 pages
Verified Note

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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents