Leave a comment here , AP A
Author Archives: Mr. M
Python With Robots Curriculum
Curriculum Outline
Python with Robots
- Unit 1
- Getting to know codebot
- Unit 2
- Turn in square
- if/elif/else
- while Loop
- Unit 3
- if/else inside loop
- Unit 4
2 Player Button Presser V2 -Loops
After making our 2 player Button Presser Game, let’s make some improvements.
Objective: modify the code so that the game repeats until there are no ties!
Hint : use a while True loop and break when someone wins
Microbit Firia Lab Concepts
- Unit 1
- Datatypes (scroll vs show())
- Unit 2
- Variables (delay= 1000)
- Roman Translator Standalone Assign
- Unit 3
- while loop
- Unit 4
- break statement
-
num = 10 while num < 100: num = num + 10 if a button pressed : num = num -1 if b button pressed : num = num + 2
- Unit 5
- Intro to lists
- Unit 6
- Lists
- len function
- random index from list (Answer Bot)
- Cycling through a list
- type function
- Unit 7
- Probability Lab
- Unit 8
- def() using functions
- Unit 9
Guess Animal’s Weight – Using a Loop
Write a program in which the use is asked to guess the weight of an animal. Allow the user 5 guesses to figure the weight of the animal.
Finished Project :
- Use a
loop to keep track of the number of guesses and and the world function - use a < b to keep track of how many times the user guessed the weight.

- If they guess the correct number then
Foxconn Assignment
Foxconn Articles/links
- Wired’s article READ THIS FIRST
- Nyt article on foxconn ( READ THIS SECOND)
- Inside Foxconn youtube (we will watch this in class together)
Alice 2 Proximity Functions
One of the hardest concepts for younger programmers to learn is what returning a value means, a concept which Alice represents by its notion of ‘functions’. And, in Alice, a great approach is to require students to move an object based on the distance and to use a function to return the value of that distance and store it in a variable.
Every object in Alice has a set of proximity functions:

However, distance to, which most students will probably be most tempted to use is rarely what you want to use–especially when you want to move an object relative to another object using the calculated distance.
Consider, the picture below. Let’s say we want to calculate the distance between the hammer and the moon’s surface. Well, if you used distance to to calculate the distance and move the hammer down, you’ll see that the hammer actually falls down into the moon. That’ s because the distance is being calculated from the center of the hammer and the center of the whole planet!
Instead, use distance above!
In the picture below, if you want the astronaut to move to the spaceship based off of a distance, you should try the distance in front of
Before you jump into text coding with middle school coders , Alice is a powerful tool for teaching what “returning a value” means.
Intro To CS 2019-20
I. Alice
Unit 1
- Complete packets #3- 8 by Thursday Wednesday 27th
- #1 (Example tutorial)
- #2 (skipped)
- #3 Coach–opacity, color
- #4 Camera and manipulating objects (turn,tumble etc)
- #5a Alice code (how to add instructions)
- #5b Alice Primitive Methods
- #6 ( camelCase, — read only, no tutorials)
- #7 ( primitive methods from object tree)
- #8 (do together )
- Project #1
- at least 10 instructions
- modify a ‘subpart’
- 1 do-together statement
- at least 3 different objects
- Worth 7 points.
- To get a 7/7 you must achieve the ‘wow factor’–ie go above and beyond to create a superior final project
- you must save your file in the format of
- lastname-assignment1
- morris-assignment1
Unit 2
Unit 2 Packets
- #9 (variables)
- #10 functions vs methods
Unit 2 Assignments
All the assignments listed below are detailed on this page
- Drag Racing
- Spaceship Repair
- Apollo 15
- End of Unit Assign
-
Unit 3
- #10
- #11 (math Expressions)
- #12 (Strings and Text)
- Read: Important post to understand
- Read What as a String
- Area of Triangle Assignment (only that one assignment)
- #13 (booleans)
#14 (relational operators) (Show me this one when you’re done with the gumdrop/fish tutorial)- Skip #14 (we did this together)
- Complete the rest of unit 3/4 assignments
- Roman Translator
- MPG modified
- Temp Convert Mod
- OR , you can skip all of these and do the much much more involved “Rock Paper Scissors ” game .
Unit 4 . Loops
- Complete Packets:
- 15 b (The Loop Instruction)
- 16 (The While Instruction)
- Unit 4 assignments here
Unit 4 . Parameters and Objects [advanced]
- Complete Packets:
- #18 Writing a Class Level Method
- #20 Saving an Object to a New Class
- #21 Stepwise Refinement (Follow the instructions carefully on this one). If your method does not seem to work, it’s probably because you switched a left leg with a right leg
- #22 Passing Arguments
- Assignments here
Last year’s class page.
SUPA AP A [2020-21]
SUPA / AP CS A
Objects
Strings
Array Fun 2 (loops)
Array 1 and String 1
ArrayLists and Objects(Pt I)
- ArrayList Demo Code
- Exercises (beta)
- Bank Assignment
- Student Class *
- ClassRoster *
- PlayListProject *
Objects Pt II . Super and Sub classes
- Account types (Account, CheckingAccount etc…)
- BanK II
Recursion, Sorting and Searching
String
Validation Project (Non loops)
Arrays
Coding bat (as indicated)

















