M1D3: CS50 Lecture 0 – Scratch | Part 2
Date: December 11, 2022
Event – something graphical or interactive which happens in a computer program.
Arguments or Parameters – input to a function that modifies the behaviour
Hello, World! (input) → Say (Algorithm) → cat with speech bubbles (Output)
Input is the argument, algorithm is a function, and the output is the side effect
Return value – a function that hands you back a value that can be reused
Functions let you implement algorithms, but they are also themselves abstractions. Abstraction as a review is simplification of something.
Variable – storing values.
Homework, need to finish by EOD
Leave a Reply