Introduction to problem solving with applications by James Tam Return to the course web page

Programming Part III: Branching, Loops, Random Number Generation

Program description

Download

Example 9: Generating random numbers (rolling a single six sided die)

Random

Example 10: Multiple successive branches (independent)

Multiple: non-nested

Example 11: Multiple nested branches (dependent)

Multiple: nested