# 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.

Time: maybe 3 60 minute sessions

## CODING CARDS

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

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

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