Lesson 4.11 Functions MAKE
Oct 6 (A-day) and Oct 7 (B-day)
Oct 6 (A-day) and Oct 7 (B-day)
Student Activity Guide - Functions MAKE
Function: a name of group of programming instructions. Also referred to as a "procedure."
Global Variables - Permanent. Can be used anywhere in your code.
Local Variables - Temporary. Can be used only in the part of the code where it was created, like inside an onEvent(). Deleted once the onEvent() is done running.
Using Programming Patterns and a step-by-step approach students make their own version of a Quote Maker app. At the beginning of the lesson students are able to explore a working version of the app. They are then given the design elements of the app but begin with a blank screen. Students use an Activity Guide to go through the high level steps they should use to develop their app but leaves it to them to decide how to write the code. At the end students submit their apps which can be assessed using a provided rubric.
This lesson is an opportunity for students to take on the "blank screen" and build the code that runs an app entirely from scratch. Guidance provided throughout the lesson helps students break down the large task of "building an app" into more incremental steps that they can use on future projects, including this unit's final project and the Create PT.
CSP Conceptual Framework
CSTA K-12 Computer Science Standards (2017)
AP - Algorithms & Programming
2-AP-19 - Document programs in order to make them easier to follow, test, and debug.
3A-AP-17 - Decompose problems into smaller components through systematic analysis, using constructs such as procedures, modules, and/or objects.
3B-AP-14 - Construct solutions to problems using student-created components, such as procedures, modules and/or objects.