Author Archives: Mr. M

SUPA Web 2020-21

SUPA Web

Important Links

Live Reload

logo@2x

Tip and tricks for git

 

Bootstrap 4
bootstrap

Quarter 3

Quarter 4

 



2018-19 Version

Quarter 4 project – years past

 

Bootstrap Based Tip Calculator UX   https://mrmonline.org/bootstrap-tip-calculator/

 

Microbit Firia Lab Concepts

  1. Unit 1
    1. Datatypes (scroll vs show())
  2. Unit 2
    1. Variables (delay= 1000)
    2. Roman Translator Standalone Assign
  3. Unit 3
    1. while loop
  4. Unit 4
    1. break statement
  5. Unit 5
    1. Intro to lists
  6. Unit 6
    1. Lists
    2. len function
    3. random index from list (Answer Bot)
    4. Cycling through a list
    5. type function
  7. Unit 7
    1. Probability Lab
  8. Unit 8
    1. def() using functions
  9. 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 :

 

  1. Use a while-command-alice loop to keep track of the number of guesses and and the world function
  2.   use a < b  to keep track of how many times the user guessed the weight.alessthanb-alice-world
  3. If they guess the correct number then

 

 

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:
alice-2-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!

alice-distance-above-use-case

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

 

alice-astronaut-space-ship

Before you jump into text coding with middle school coders  , Alice is a powerful tool for teaching what “returning a value” means.