Create a Birthday Match Simulation!

Create a Birthday Match Simulation

Students will create a computer simulation to test the probability of an event, in this case of two people in a class having the same birthday. This activity can be modified to demonstrate the probability of other events, such as the chance of rolling the same number on a die or on multiple dice.

Students will code the computer to:

  • Stamp a shape for each person’s birthday in a randomly determined location.

  • Create variables using sliders, and text boxes.

  • Create conditional statements to test conditions and control action.

Grades: 5 - 8

Time: maybe 3 60 minute sessions

CODING CARDS

The link will take you to the Slides. Choose File --> Download --> PDF
Or
Go to File—>Print Settings and PreviewChoose Handout - 2 slides per pageChoose PortraitChoose Download as PDF

TUTORIAL

Under Development!

CURRICULUM CONNECTIONS

Math C3. solve problems and create computational representations of mathematical situations using coding concepts and skills

Grade 5

C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves conditional statements and other control structures

C3.2 read and alter existing code, including code that involves conditional statements and other control structures, and describe how changes to the code affect the outcomes

Grade 6

C3.1 solve problems and create computational representations of mathematical situations by writing and executing efficient code, including code that involves conditional statements and other control structures

C3.2 read and alter existing code, including code that involves conditional statements and other control structures, and describe how changes to the code affect the outcomes and the efficiency of the code

Grade 7

C3.1 solve problems and create computational representations of mathematical situations by writing and executing efficient code, including code that involves events influenced by a defined count and/or sub-program and other control structures

C3.2 read and alter existing code, including code that involves events influenced by a defined count and/or sub-program and other control structures, and describe how changes to the code affect the outcomes and the efficiency of the code

Grade 8

C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves the analysis of data in order to inform and communicate decisions

C3.2 read and alter existing code involving the analysis of data in order to inform and communicate decisions, and describe how changes to the code affect the outcomes and the efficiency of the code