Friday, October 11, 2019

3.3 Let Me Check My Calendar

  • 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:
    1. Reporters report a value such as a number or a text string. Reporters have a round shape.
    2. A Predicate is a special kind of Reporter that always reports True or False. Predicates have a hexagonal shape: 
  • 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.
    Read More

 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
  Due Monday   October 14, 2019

No comments:

Post a Comment

Blog information move to Google Doc

Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...