CPSC 110-08: Computing on Mobile Phones
Fall 2012
Modeling a Three-sided Coin

CS Principles

This activity addresses several ideas, including creativity, abstraction, algorithms, and programming. It ask students to extend the simulation experiment done in class to a 3-sided coin. How good is App Inventor's PRNG at simulating a 3-sided coin? It addresses the following learning objectives.

Challenge Assignment (in class)

You should work with your Project-1 partner on this assignment.

Following the fair coin experiment and using and building upon the source code for that experiment, write an app that helps you test whether App Inventor's pseudo random number generator (PRNG) can successfully model a fair 3-sided coin.

Background

A fair three-sided coin is a coin that is thick enough that it lands on heads, tails, and sides with equal probability. Here's what one might look like (click to enlarge):

Requirements