Deadline for any missing Section 3 assignments is Friday, November 30th.
Today - Randomness and Simulations
Randomness - what are some types of apps that require randomness? How do computers simulate randomness?
Your Turn - work with a partner to see how random a coin toss is - each person will flip a penny 20 times while the other person records the results. Then change roles and repeat a second time. Post the results on the board so we can see everyone's results.
Creating a Model to simulate a coin toss - copy down the pseudocode for the app as the class discusses what is needed.
Use this pseudocode to write an app that simulates a coin toss.
Here are the images you should use for the coin. Download these to your computer and then upload them to App Inventor so you can use them in your app.


Demonstrate your app for teacher check.
Now answer the questions and reflections for
4.5 Coin Flip Simulation and show these for teacher check.
Complete - 4.4 Logo Part 1 - you will need to write code for exercises 1-4 and then write code to create a shape of your own design.
Be sure that each exercise is saved as a separate procedure.
4.4 Logo Part 1 - Follow the instructions and get each of the following checked off one at a time:
- 40x40 Square
- Line40
- Refactor your square40 procedure to use a for-each loop and the line40 procedure to draw a 40-by-40 square.
- Draw a Face: Design an algorithm for drawing a face with a large square for the head, 2 small squares for eyes, and a line for the mouth, as shown below.
Design and define any other procedures you need to help simplify this problem -- e.g., the outline of the head, the eyes, and so on.
Make appropriate use of loops in your algorithm.
- Refactor your draw face program to include procedures.
- Draw your own design - design and implement the code to make your own drawing. Must be more complex than the draw face program.
Complete 4.4 Questions and Reflections. Show your blue dot of success for teacher check.
Complete any missing work.
Work as a group to complete
4.6 Coin Flip Experiment - the goal of this experiement is to find out how good the app inventor random number generator is. Make a copy of the following spreadsheet in your google drive and then add your data to the sheet.
Trial |
Flips |
Heads |
% Heads |
Total Flips |
Total Heads |
Total % Heads |
1 |
100 |
45 |
45.0 |
100 |
45 |
45% |
2 |
100 |
51 |
51.0 |
200 |
93 |
46.5% |
Complete the Reflection Questions for 4.6 Coin Flip Experiment - also copy your data table to your reflection page.
Complete 4.4 Logo Part 1 - complete the exercises on this page. Save each step as a different procedure and then demonstrate each procedure. Complete the questions and reflections and have those checked off. Create an app page for step 8.