notes

Simulation: this is a way to simulate a real world enviroment. consider random, biases, and if a simulation is worth it before developing one.

HINT: Simulations are useful because they are safe, inexpensive, repeatable, and accurately model how something would be in the real world.

HINT: when making a simulation you should consider: Removing details, which could be done using pseudo-random number generators,Using other ideas from previous college board lessons; like procedure, flowcharts and conditionals

hacks

Question Answer
Name(First+Last) Justin Nguyen
1 none
2 none
3 A ; B and C are true
4 B ; other aircraft are most important for this type of simulation. weather + aircraft imperfections are least important.
5 C ; both experiments and simulations need to consider what their purpose is
6 A ; simulating a car crash would cost less and you can't calculate how a car crash would work irl
7 A ; an experiment on greenhouse gases would be dangerous to the enviorment. also would be hard to control.
8 none
9 B ; we are not simulating anything. we are just doing a simple calculation.

extra

import random

rolls = 4 # alter to determine amount of dice rolls
total = 0

i = 0
while rolls != 0: # rolls dice for number of rolls
    diceroll = random.randint(1,6) # the dice roll. change the "6" to how many sides on the dice you want
    i = i + 1 
    print("roll", i, "is a ", diceroll, "!") 
    total = total + diceroll
    rolls = rolls - 1

print("total of dice rolls:", total)
roll 1 is a  1 !
roll 2 is a  5 !
roll 3 is a  4 !
roll 4 is a  1 !
total of dice rolls: 11

This is a dice roll simulation that simulates a 6 sided dice roll. you can determine how many die you want to roll and also see the sum of all die rolled. to modify the amount of sides on the dice, you would just change the last number to whatever amount of sides you want on your dice.