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

100 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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents