Notes

Simulations are system based processes that can be used to study behavior and different outcomes for multiple conditions. Simulations are mostly based on mathematical and statistical models which run through situations that are hard to analyze directly

Experiments are controlled studies that directly study behavioral and mathematical systems. In most circumstances, these involve changing certain variables to alter and study the outcomes.

Answers

Theodore Huntalas
----------------- -----------------
Question Answer
----------------- -----------------
1 N/A
2 N/A
3 C
4 B
5 C
6 A
7 A
8 N/A
9 B
import random

def diceRoll():
    x=0
    diceOne = 0
    diceTwo = 0
    diceThree = 0
    diceFour = 0
    diceFive = 0
    diceSix = 0
    while x < 1000:
        diceNum = random.randrange(1,7)

        if diceNum == 1:
            diceOne = diceOne + 1

        if diceNum == 2:
            diceTwo = diceTwo + 1

        if diceNum == 3:
            diceThree = diceThree + 1

        if diceNum == 4:
            diceFour = diceFour + 1

        if diceNum == 5:
            diceFive = diceFive + 1

        if diceNum == 6:
            diceSix = diceSix + 1
        
        x = x+1
    OneP = diceOne/10
    TwoP = diceTwo/10
    ThreeP = diceThree/10
    FourP = diceFour/10
    FiveP = diceFive/10
    SixP = diceSix/10

    print("Raw Data")
    print("One:",diceOne,"times or",OneP,"%")
    print("Two:",diceTwo,"times or",TwoP,"%")
    print("Three:",diceThree,"times or",ThreeP,"%")
    print("Four:",diceFour,"times or",FourP,"%")
    print("Five:",diceFive,"times or",FiveP,"%")
    print("Six:",diceSix,"times or",SixP,"%")
    
    print(" ")

    print("Table Format")
    print("--------------------------------------")
    print("|","Number","|","Times Rolled","|","Percentage","|")
    print("--------------------------------------")
    print("|"," ","#1"," ","|","    ",diceOne,"   ","|"," ",OneP,"%"," ","|")
    print("--------------------------------------")
    print("|"," ","#2"," ","|","    ",diceTwo,"   ","|"," ",TwoP,"%"," ","|")
    print("--------------------------------------")
    print("|"," ","#3"," ","|","    ",diceThree,"   ","|"," ",ThreeP,"%"," ","|")
    print("--------------------------------------")
    print("|"," ","#4"," ","|","    ",diceFour,"   ","|"," ",FourP,"%"," ","|")
    print("--------------------------------------")
    print("|"," ","#5"," ","|","    ",diceFive,"   ","|"," ",FiveP,"%"," ","|")
    print("--------------------------------------")
    print("|"," ","#6"," ","|","    ",diceSix,"   ","|"," ",SixP,"%"," ","|")
    print("--------------------------------------")
  


diceRoll()
Raw Data
One: 175 times or 17.5 %
Two: 157 times or 15.7 %
Three: 162 times or 16.2 %
Four: 188 times or 18.8 %
Five: 162 times or 16.2 %
Six: 156 times or 15.6 %
 
Table Format
--------------------------------------
| Number | Times Rolled | Percentage |
--------------------------------------
|   #1   |      175     |   17.5 %   |
--------------------------------------
|   #2   |      157     |   15.7 %   |
--------------------------------------
|   #3   |      162     |   16.2 %   |
--------------------------------------
|   #4   |      188     |   18.8 %   |
--------------------------------------
|   #5   |      162     |   16.2 %   |
--------------------------------------
|   #6   |      156     |   15.6 %   |
--------------------------------------