Coding

Not a Learning.com customer? Learn More

Type:Lesson

Estimated Time:90 minutes

Score Type:Auto Score

This lesson automatically provides a score to your gradebook

Available Language: English


Vocabulary: coding, debugging, event handler, global variable, index, interval event, mouse move, programming, variable


Objectives:

  • Students will set physics for the stage to control movement/random movement.
  • Students will have users control movement on the stage using a variety of methods.
  • Students will use a global variable to refer to a variable outside of the function where it is defined.
  • Students will use random choice commands to set random positions on the stage.
  • Students will use a timer with a global keyword to create a win condition in their games.

Subjects:

Algorithm Development 

Information Technology > Programming > Algorithm Development 

Algorithms 

Information Technology > Programming > Algorithms 

Analyze Algorithms 

Information Technology > Programming > Analyze Algorithms 

Basic Techniques 

Information Technology > Programming > Basic Techniques 

Conditional Statements 

Information Technology > Programming > Conditional Statements 

Control Structures (sequential,conditional etc.) 

Information Technology > Programming > Control Structures (sequential,conditional etc.) 

Control Structures: Selection Control Statements 

Information Technology > Programming > Control Structures: Selection Control Statements 

Data Analysis 

Information Technology > Programming > Data Analysis 

Data Structures and Syntax 

Information Technology > Programming > Data Structures and Syntax 

Event-based 

Information Technology > Programming > Event-based 

Experimentation

Information Technology > Technology Use In Society > Design Process > Experimentation

Functional Decompositio

Information Technology > Programming > Functions > Functional Decompositio

Functions 

Information Technology > Programming > Functions 

General / Basic Concepts of 

Information Technology > Programming > General / Basic Concepts of 

Integration of Physics 

Media Production > Game Design > Integration of Physics 

Keyboard Use / Input, Output Devices / Proficiency of use

Science > History / Technology / Social Perspectives > Computer Science > Computer skills > Keyboard Use / Input, Output Devices / Proficiency of use

Libraries (Code) 

Information Technology > Programming > Libraries (Code) 

Local and Global Scope Access Variable Declarations 

Information Technology > Programming > Local and Global Scope Access Variable Declarations 

Object Oriented Data Types and Programming 

Information Technology > Programming > Object Oriented Data Types and Programming 

Program Execution 

Information Technology > Programming > Program Execution 

Programming / Code Development 

Media Production > Game Design > Programming / Code Development 

Python

Information Technology > Programming > Programming Languages > Python

Random Numbers, Use of 

Information Technology > Programming > Random Numbers, Use of 

Variables 

Information Technology > Programming > Variables 

Visual Block

Information Technology > Programming > Programming Languages > Visual Block

Vocabulary 

Information Technology > Programming > Vocabulary 
Show More

Standards:

S.4.d Students exhibit a tolerance for ambiguity, perseverance and the capacity to work with open-ended problems.
S.5.a Students formulate problem definitions suited for technology-assisted methods such as data analysis, abstract models and algorithmic thinking in exploring and finding solutions.
S.5.b Students collect data or identify relevant data sets, use digital tools to analyze them, and represent data in various ways to facilitate problem-solving and decision-making.
S.5.c Students break problems into component parts, extract key information, and develop descriptive models to understand complex systems or facilitate problem-solving.
S.5.d Students understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.
2-AP-10 Use flowcharts and/or pseudocode to address complex problems as algorithms. (P4.4, P4.1)
2-AP-11 Create clearly named variables that represent different data types and perform operations on their values. (P5.1, P5.2)
2-AP-12 Design and iteratively develop programs that combine control structures, including nested loops and compound conditionals. (P5.1, P5.2)
2-AP-13 Decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs. (P3.2)
2-AP-16 Incorporate existing code, media, and libraries into original programs, and give attribution. (P4.2, P5.2, P7.3)
3A-AP-13 Create prototypes that use algorithms to solve computational problems by leveraging prior student knowledge and personal interests. (P5.2)
3A-AP-15 Justify the selection of specific control structures when tradeoffs involve implementation, readability, and program performance, and explain the benefits and drawbacks of choices made. (P5.2)
3A-AP-17 Decompose problems into smaller components through systematic analysis, using constructs such as procedures, modules, and/or objects. (P3.2)
Feedback