- Warm-up : Answer these questions :
- What are the three different types of Custom Blocks?
- What is the name of the variable that is input into a Custom Block?
- What is the name of the variable that is output from a Custom Block?
- Add-on Vocabulary for Custom Block
- Analogous Data Structures for Custom Block in other CS languages:
- In Snap : Custom Block
- C, Python : Function, Method
- java, C++, OO Programming): Method
- Reporter and Predicate custom blocks:
- Argument Definition: Similar to mathematics, an argument is the specific input (the actual text string, number, or Boolean) passed to the function. Read More
- Parameter Definition: The variable found inside the Custom Block or function. In Snap, it is referred to as the Input Variable. Parameters are very similar to script variables, except their values come from outside the Custom Block.
- Therefore the Parameter name used should be different than the Argument Variable Name (outside the block) to avoid any confusion of which variable is used inside the block.
- Common bug error found with the use of custom block/function : passing the values of the argument not in the right order
Lab 3.3 Let Me Check My Calendar Part 1
- Write some custom blocks that take arguments and are useful for calculations involving dates and calendars
- Name your project LastName_FirstName_Lab3.3_Calendar_Part1
No comments:
Post a Comment