updating static lesson page

This commit is contained in:
Michael Elliot Braun 2016-03-30 17:01:28 -07:00
parent 529b18e423
commit d1bf09b084
6 changed files with 53 additions and 130 deletions

View File

@ -60,6 +60,7 @@ Overview of lessons for the BBC micro:bit.
## Advanced
* [Speed Button](/microbit/lessons/speed-button), code a speed game with running time
* [Headbands](/microbit/lessons/headbands), create a charades game with a collection of strings that hold the words
* [Hero](/microbit/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit
* [Catch the Egg](/microbit/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller
### ~

View File

@ -13,36 +13,12 @@ Running Time
* [activity](/microbit/lessons/speed-button/activity)
* [quiz](/microbit/lessons/speed-button/quiz)
* [quiz answers](/microbit/lessons/speed-button/quiz-answers)
* [challenges](/microbit/lessons/speed-button/challenges)
## Class
Year 7
## Prior learning/place of lesson in scheme of work
Learn how to declare a **Boolean** variable, `var t:= true` `var f:=false` for one of two possible values: true or false. We will be learning how to declare Boolean variables using global variables, if (conditionals), input on button pressed, input running time, as well as simple commands, such as input on button pressed, and show string.
## What the teacher needs to know
* Algorithm: An unambiguous set of rules or a precise step-bystep guide to solve a problem or achieve a particular objective.
* Command: An instruction for the computer to execute, written in a particular programming language.
* Data: A structured set of numbers, possibly representing digitised text, images, sound or video, which can be processed or transmitted by a computer, also used for numerical (quantitative) information.
* Decomposing: The process through which problems or systems are broken down into their component parts, each of which may then be considered separately.
* Hardware: The physical systems and components of digital devices; see also software.
* Input: Data provided to a computer system, such as via a keyboard, mouse, microphone, camera or physical sensors.
* Output: The information produced by a computer system for its user, typically on a screen, through speakers or on a printer, but possibly through the control of motors in physical systems.
* Programmable toys: Robots designed for children to use, accepting input, storing short sequences of simple instructions and moving according to this stored program.
* Program: A stored set of instructions encoded in a language understood by the computer that does some form of computation, processing input and/or stored data to generate output.
* Repetition: Executing a section of computer code a number of times as part of the program.
* Script: A computer program typically executed one line at a time through an interpreter, such as the instructions for a Scratch character.
* Selection: A programming construct in which one section of code or another is executed depending on whether a particular condition is met.
* Sequence: To place program instructions in order, with each executed one after the other.
* Simulation: Using a computer to model the state and behaviour of real-world (or imaginary) systems, including physical or social systems; an integral part of most computer games.
* Variables: A way in which computer programs can store, retrieve or change data, such as a score, the time left, or the users name.
**QuickStart Computing Glossary
## Documentation
* **running time** : [read more...](/microbit/reference/input/running-time)
@ -52,12 +28,6 @@ Learn how to declare a **Boolean** variable, `var t:= true` `var f:=false` for o
* **if** : [read more...](/microbit/reference/logic/if)
* **show string** : [read more...](/microbit/reference/basic/show-string)
## Resources
* Activity: [tutorial](/microbit/lessons/speed-button/tutorial)
* Activity: [quiz](/microbit/lessons/speed-button/quiz)
* Extended Activity: [challenges](/microbit/lessons/speed-button/challenges)
## Objectives
* learn how to get the number of milliseconds elapsed since the script began. 1,000 milliseconds = 1 second
@ -66,68 +36,3 @@ Learn how to declare a **Boolean** variable, `var t:= true` `var f:=false` for o
* learn how to run code when an input button is pressed
* learn how to conditionally run code depending on whether a condition is true or not
* learn how to show a string on the LED screen one character at a time
## Links to the National Curriculum Programmes of Study for Computing
## Progression Pathways / Computational Thinking Framework
#### Algorithms
* Designs solutions (algorithms) that use repetition and two-way selection, ie if, then and else.(AL)
* Uses diagrams to express solutions.(AB)
* Uses logical reasoning to predict outputs, showing an awareness of inputs (AL)
* Designs solutions by decomposing a problem and creates a sub-solution for each of these parts. (DE) (AL) (AB)
* Recognises that different algorithms exist for the same problem (AL) (GE)
* Represents solutions using a structured notation (AL) (AB)
#### Programming & Development
* Creates programs that implement algorithms to achieve given goals (AL)
* Declares and assigns variables(AB)
* Understands the difference between, and appropriately uses if and if, then and else statements(AL)
* Uses a variable and relational operators within a loop to govern termination (AL) (GE)
* Selects the appropriate data types(AL) (AB
#### Data & Data Representation
* Uses filters or can perform single criteria searches for information.(AL)
* Performs more complex searches for information e.g. using Boolean and relational operators(AL) (GE) (EV)
* Defines data types: real numbers and Boolean (AB)
#### Hardware & Processing
* Knows that computers collect data from various input devices, including sensors and application software (AB)
#### Communication Networks
* Demonstrates responsible use of technologies and online services, and knows a range of ways to report concerns Understands how search engines rank search results (AL)
#### Information Technology
* Collects, organizes, and presents data and information in digital content (AB)
* Makes appropriate improvements to solutions based on feedback received, and can comment on the success of the solution (EV)
* Recognises ethical issues surrounding the application of information technology beyond school.
Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algorithmic Thinking; EV = Evaluation; GE = Generalisation
## Activity
* time: 20 min.
* [tutorial](/microbit/lessons/speed-button/tutorial)
* [quiz](/microbit/lessons/speed-button/quiz)
* assessment opportunities: forever, plot, pause, clear screen
## Extended Activity
* time: 20 min.
* [challenges](/microbit/lessons/speed-button/challenges)
* assessment opportunities: loops, plot, pause, clear screen
## Homework
* Extended Activity: [challenges](/microbit/lessons/speed-button/challenges)
## Intended follow on
Publish script to the classroom.

View File

@ -4,14 +4,10 @@ These challenges will teach you how to create a fun charades game to play with y
## Before we get started
Complete the following guided tutorial:
Your beginning code should look like this:
* [tutorial](/microbit/lessons/headbands/tutorial)
At the tend of the tutorial, click `keep editing`. Your code should look like this:
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
coll.push("night")
@ -32,9 +28,23 @@ game.startCountdown(30000)
Let's add more words for the player to act out! But first, we need to increase the time in one round to give the player more time get through all the words. Let's change the `game->start countdown` statement.
```
// **. . .**
game.startCountdown(60000) // ***
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
coll.push("night")
coll.push("cat")
coll.push("cow")
input.onLogoUp(() => {
let index = Math.random(coll.length)
let word = coll[index]
basic.showString(word, 150)
})
input.onScreenDown(() => {
game.addScore(1)
})
game.startCountdown(60000)
```
* Run your code to see if it works as expected
@ -43,19 +53,26 @@ game.startCountdown(60000) // ***
Now let's add 5 more words to our list of charade words. Right above the the line `word:=coll->at(index)` add 5 lines that say `coll->add("")`. In this example, we will add the words **bicycle, telephone, sun, car, and ant** but you can add whatever words you like.
```
// . . .
coll.push("puppy")
```blocks
let coll.push("puppy")
coll.push("clock")
coll.push("night")
coll.push("cat")
coll.push("cow")
coll.push("bicycle") // ***
coll.push("telephone") // ***
coll.push("sun") // ***
coll.push("car") // ***
coll.push("ant") // ***
// . . .
coll.push("bicycle")
coll.push("telephone")
coll.push("sun")
coll.push("car")
coll.push("ant")
input.onLogoUp(() => {
let index = Math.random(coll.length)
let word = coll[index]
basic.showString(word, 150)
})
input.onScreenDown(() => {
game.addScore(1)
})
game.startCountdown(30000)
```
* Run your code to see if it works as expected.

View File

@ -18,8 +18,8 @@ A 'collection' is a group of variables of the same type stored together. A 'coll
## 2. Consider the following lines of code.
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
```
@ -28,14 +28,14 @@ Write the line of code that will display the string "puppy" using `data->coll`.
<br/>
```
```blocks
basic.showString(coll[0], 150)
```
## 3. Consider the following lines of code.
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
coll.push("cat")
@ -45,22 +45,22 @@ Write the line of code that will display the string "cat" using `data->coll`.
<br/>
```
```blocks
basic.showString(coll[2], 150)
```
## 4. Consider the following line of code.
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
```
Write the five (5) lines of code that will add the following five words to `data->coll`: puppy, clock, night, cat, cow.
<br/>
```
coll.push("puppy")
```blocks
let coll.push("puppy")
coll.push("clock")
coll.push("night")
coll.push("cat")
@ -71,7 +71,7 @@ coll.push("cow")
<br/>
```
```blocks
let index = Math.random(coll.length)
let word = coll[index]
```

View File

@ -18,8 +18,8 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
## 2. Write the line of code that will display the string "puppy" using "data->coll".
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
```
@ -28,8 +28,8 @@ coll.push("clock")
## 3. Write the line of code that will display the string "cat" using `"data->coll".
```
coll = (<string[]>[])
```blocks
let coll = (<string[]>[])
coll.push("puppy")
coll.push("clock")
coll.push("cat")
@ -40,7 +40,7 @@ coll.push("cat")
## 4. Write the five (5) lines of code that will add the following five words to `data->coll`: puppy, clock, night, cat, cow.
```
coll = (<string[]>[])
let coll = (<string[]>[])
```
<br/>