Loops with Rey and BB8 on code.org

Programming with Rey and BB8 : https://studio.code.org/s/coursec-2022/lessons/8/levels/1

Lesson Objective: Use blockly code to solve puzzles

Scripting a sequence of instructions

Using Repeat loops to save us repeating code

Code.org is a great way to learn coding and have fun at the same time

Watch this video before you start

Now you can solve the puzzles. This is taken from Course C on code.org, but this section (lesson 8) particularly focus on using repeat blocks.

Programming with Rey and BB8 : https://studio.code.org/s/coursec-2022/lessons/8/levels/1

Note : to complete the tasks, make sure that you use the repeat tool.

Why do you think that this is so important?

Are you a teacher using Google Classroom?

You can sign in and assign courses to your classes. You are then able to track students progress. You can display the progress chart on the board.

Success Criteria

  1. I can complete most of the lesson (lesson 8) on Course C with all levels in dark green
  2. I can complete all of the lesson on Course C
  3. I have a good understanding of why we use repeat tools
  4. I can start the next lessons (lessons 9 and 10)

Coastal Erosion Interactive Quiz using Google Slides

Interactive : allowing a two-way flow of information between a computer and a computer-user; responding to a user’s input.

We are going to make a presentation, but this time, it will require user input for it to work. We’ll make a quiz.

Lesson Objective : Make a quiz using presentation software (e.g. PowerPoint, Google Slides)

Add questions and 4 possible answers

Add shapes and hyperlink them to relevant slides

Dawlish Sea Wall Collapse 2014

2014 : Dawlish. The main rail line to the South West of England falls into the sea.

2023 Update on the sea wall

Task : Create a quiz about coastal erosion using Google Slides

1. Open a new presentation and create an introduction slide (slide 1)

2. Add a new slide (slide 2) and add a question and four possible answers.

For the answers, add 4 shapes and add text

3. Add another slides (slide 3). This is the “Correct” slide.

Add a button (shape) and text which will link to the next question.

4. Add another slides (slide 4). This is the “Incorrect” slide.

5. Link the slides

On Google Slides, select the shape you want to link on.

Go to Insert > Link

Enter the slide number that you want to link on. Select that slide and press Apply.

6. Now test the slideshow. Trial correct and wrong answers. Ask someone else to test.

7. Make changes and add more questions

Success Criteria

1. I can open Google Sldies

2. I can create slide 1 (Splash Screen)

3. I can create a question slide

4. I can create an “incorrect” slide

5. I can create a “correct” slide

6. I can create at least one link

7. I can create 2 or more links

8. My Quiz has a nice design

9. I have tested the quiz

10. I can make a second question

Linking on MS PowerPoint

Go back to the question slide and select the correct shapes (right click and choose link). Link the shape to the correct slide.

Go back to the question slide and select an icorrect shape (right click and choose link). Link it to the incorrect slide. Do this with all the other 3 incorrect shapes.

Test that it works. Fix any issues that you may have.

Change text colours, fonts and size. Format your shapes, change colours, etc.

More examples

Flowcharts to Scratch

Lesson Objective : Use flowcharts to create mini programs. This will help us understand the link between flowcharts and coding.

Use Conditional Statements : if-then-else

Using blocks from sensing (light blue) operators (green)

Flowcharts are a great way to help us plan for coding. To learn more about how they relate, you will be given a set of flowcharts that you will use to script in Scratch.

Example

First, I will give you a flowchart and then the script.

In the flowchart below, you will ask the user for the temperature (input). If the temperature is less than 32, you will print, below freezing (output).

Now open Scratch and script the code below

Link to Scratch : https://scratch.mit.edu/

Note : I have deleted the cat sprite and replaced it with a wizard. I also changed the background. This is optional but please do not spend more than a couple of minutes deciding.

Here is the code that you need to script. You will need to use the sections, sensing (light blue) and operators (green).

If the user enters a number below 32, then the wizard will say below freezing, else he will say above freezing

Your task : Use the following flowcharts to make script code in Scratch (solution shown for flow chart 1 only).

Coding skills : Conditions (if-then-else)

Link to Scratch : https://scratch.mit.edu/

Complete the following on your own

Extension : create scenarios of your own

Success criteria

  1. I can script code for at least one flowchat by copying the given code
  2. I can test the code
  3. I can script code for at least one flowchat independently
  4. I can script code for all of the flowcharts
  5. I can create my own flowcharts and programs

Links : https://www.zenflowchart.com/guides/flowchart-in-c-programming

What is Coastal Erosion?

Creating a news article about coastal erosion

Lesson Objective : What is coastal erosion? How does it impact our coast and our lives?

Lesson Outcome : Write a news article about coastal erosion

What software will you use? You could use MS Publisher or Google Docs (choose a news article template).

Dawlish Sea Wall Collapse 2014

2014 : Dawlish. The main rail line to the South West of England falls into the sea.

2023 Update on the sea wall

Stokes Bay, Gosport 2023

Think about : How can we protect Stokes Bay?

Task : Create a news article about coastal erosion

This could be about an event that has happened, a potential danger or something that is being done to prevent coastal erosion (sea wall).

Software : you could use MS Publisher or Google Docs (article template).

What makes a great article?

Look at this example below.

What is in the article above?

A punchy headline with large text, i.e. What a foot of sea level rise could mean for San Diego

A sub headline, i.e. it’s getting to the point where in somebody’s lifetime, they will notice the difference

A dramatic picture showing the effects of coastal erosion

A story

It is well laid out

Extra : create a mast (logo) for your newpaper

Success Criteria

Show your article to one of your friends

It has a strong headline

Great choice of pictures

The layout looks professional

You have created a mast (logo) for your newspaper

Task : Coastal Erosion Screening Tool

Coastal Erosion Screening Tool : https://coastal.climatecentral.org/

An interactive map showing areas threatened by sea level rise.

You can choose your home town and see how rising sea levels make an impact.

Task : The Ocean Game

The sea is rising; can you save your town

The Ocean Game : https://www.latimes.com/projects/la-me-climate-change-ocean-game/

Extra viewing

Video 1 UK Coastal Erosion

Video 2 How Coastal Erosion Works

Video 3 Global Warming

Interactive Quiz – Google Slides Version

Interactive : allowing a two-way flow of information between a computer and a computer-user; responding to a user’s input.

We are going to make a presentation, but this time, it will require user input for it to work. We’ll make a quiz.

Lesson Objective : Make a quiz using presentation software (e.g. PowerPoint, Google Slides)

Add questions and 4 possible answers

Add shapes and hyperlink them to relevant slides

Task : World Cup Quiz

1. Open a new presentation and create an introduction slide (slide 1)

2. Add a new slide (slide 2) and add a question and four possible answers.

For the answers, add 4 shapes and add text

3. Add another slides (slide 3). This is the “Correct” slide.

Add a button (shape) and text which will link to the next question.

4. Add another slides (slide 4). This is the “Incorrect” slide.

Add a button (shape) and text which will link back to the previous question.

5. Link the slides

On Google Slides, select the shape you want to link on.

Go to Insert > Link

Enter the slide number that you want to link on. Select that slide and press Apply.

6. Now test the slideshow. Trial correct and wrong answers. Ask someone else to test.

7. Make changes and add more questions

Success Criteria

1. I can open Google Sldies

2. I can create slide 1 (Splash Screen)

3. I can create a question slide

4. I can create an “incorrect” slide

5. I can create a “correct” slide

6. I can create at least one link

7. I can create 2 or more links

8. My Quiz has a nice design

9. I have tested the quiz

10. I can make a second question

Linking on MS PowerPoint

Go back to the question slide and select the correct shapes (right click and choose link). Link the shape to the correct slide.

Go back to the question slide and select an icorrect shape (right click and choose link). Link it to the incorrect slide. Do this with all the other 3 incorrect shapes.

Test that it works. Fix any issues that you may have.

Change text colours, fonts and size. Format your shapes, change colours, etc.

More examples

AI Machine Learning

Do Now! On a sheet of paper, write down 3 targets for the lesson. Use the examples below.

Do Now Extra: On the back of the paper, draw a Computer of the Future. What features will it have?

Classroom Expectations. Choose 3 targets for the lesson

  • One voice
  • Stay on task
  • No phones
  • Stay in your seat
  • Try your best
  • Ask for help
  • Be positive
  • Be confident with the topic

Lesson Overview : Artificial Intelligence : Machine Learning

Task 1 : Play AI for Oceans for code.org (15 minutes)

Task 2 : Review AI for Oceans

Task 3 : Self driving cars problem?

Learning Objective / Knowledge Intention

Students will be able to:

  • Discuss the role artificial intelligence plays in their lives.
  • Train and test a machine learning model.
  • Reason about how human bias plays a role in machine learning.

Learning Outcome / Knowledge Gained

Complete AI for Oceans for code.org

Task 1 : AI for Oceans on code.org

Click here to play AI for Oceans

Task 2 Moral Question

A self-driving car is travelling towards a zebra crossing. There are three people on the crossing on the cars side, and one person on the crossing on the other side.

The car’s brakes fail. The computer must decide whether to continue on the left of the road, potentially injuring people, or turn right, potentially injuring one person.

Diagram

Description automatically generated

(a) Choose whether you would program the car to;

  • stay in the left lane
  • or switch to the right lane.

Explain why you made this choice.

Left lane or right lane:

Reason for choice:

(b) The car now encounters a situation where it has the following choice:

  • Keep moving forward and risk running over a pigeon
  • Turn to avoid the pigeon, mount the kerb and burst the car tyre.

Choose whether you would program the car to keep moving forward or turn to
avoid the pigeon. Explain why you made this choice.

Keep moving forward, or turn and avoid the pigeon:

Reason for choice:

Plan for a Music Festival Website

Classroom Expectations

  • One voice
  • Stay on task
  • No phones
  • Stay in your seat
  • Try your best
  • Ask for help
  • Be positive
  • Be confident with the topic

Do Now! On a piece of paper, write down 3 of the above targets for the lesson

If you have more time : Imagine the year is 2030. What will your computer be like? Draw or describe all the features of your computer.

Learning Objective

Plan to make a website about a music festival

Learning outcome

Create a mindmap of ideas using https://bubbl.us/

Create page plans using presentation software (MS PowerPoint or Google Slides)

Before we start, let’s recap on our previous lesson about the 4 P’s of marketing

We will now plan our ideas. At this stage we considered the following

  1. What is the NAME of your festival?
  2. Which venue should you use for your festival?
  3. Who is your ideal audience?
  4. What is your ideal target market?
  5. What will you sell in the stalls? (food, drink, clothes, etc)
  6. What will the attractions include? (how many stages, singers, etc.)

Task 1 : Mind Map on Bubbl.us

Let’s use a mind map to draw a plan. I have chosen some online software called https://bubbl.us/

https://bubbl.us/

Choose a circle layout

Create your plan, something like this

Task 2 Page Plans

Now that you have a plan, start to create some pages using MS PowerPoint or Google Slides

Task 3 How will it look?

Look at these websites

  1. https://www.victoriousfestival.co.uk/ 
  2. https://www.glastonburyfestivals.co.uk/ 
  3. https://wirelessfestival.co.uk/

Make a Quiz in Scratch (Topic AI)

Scratch Online Version | Scratch Offline Download

Warm up Task : Password Control

Main Task : Write a quiz question about Artificial Intelligence

Extra time : Add scoring and extra questions

Learning Objectives: Use Scratch to make a quiz about Artificial Intelligence

Skills : Add a background and sprite

Script code using input, sensing and if-then-else

Extra Challenge : Could use variables for the scores

Warm Up Task : Password Checker

Go to Scratch

Add a sprite and a background

Use the ask command to get input from the user

Use if-then-else and operators to validate the answer and display output to the user

Make sure your password control has;

Backdrop

The sprite should welcome the player, e.g. “Hello Mr Neil”

Validate password e.g.- “You may enter,” and “You Shall Not Pass!!!,” message

Success Criteria for the Password Task

1. Ask for a name using the ask command

2. Use the join function (operators) to welcome the player

3. Ask for a password from the use (using ask)

4. Use if-then-else to tell the user if they have the correct password

Extra time difficult challenge

5. Create a new Scratch project. The user will get a free Ice Cream if they are under 10 years of age.

Script code, to ask the user how old they are. Use if-then-else to tell them if they can have a free ice cream or not.

Main Task : Create a quiz about Artificial Intelligence

Could you do this without any further guidance?

What questions will you ask?

Extra Challenge :

  1. Can you add score?
  2. Can you add more questions?

Scratch : Animate Your Name

Coding using Scratch Desktop

Scratch Online Version | Scratch Offline Download

Lesson Objective : Use coding blocks to animate letters in your name

Add letter sprites to the stage

Create code to animate each letter (using if-then)

Example: if M is pressed then the M sprite will animate

Example code: What do you think will happen?

What would happen if I did not put the instruction; wait 0.05 seconds?

TASK

1. Add letter sprites to make up your name

2. Create code for each letter so that it will animate when a key is pressed.

3. Test your code. Remember to press the green flag and then the letter.

Success criteria

1. Add a background and letter sprites to the stage

2. Animate the first letter of your name

3. Animate the second letters of your name

4. Animate 3 or more letters

5. Use different animation techniques

You will need access to Scratch Desktop

Scratch Online Version | Scratch Offline Download

The 4 P’s

Lesson Objective : Use the marketing mix to promote a summer rock concert

Know the 4 P’s and what they do.

The 4 P’s also known as The Marketing Mix

The 4 Peas

The marketing mix deals with the way in which a business uses price, product, distribution and promotion to market and sell its product.

The marketing mix is often referred to as the “Four P’s” – since the most important elements of marketing are concerned with:

  • Product – the product (or service) that the customer obtains
  • Price – how much the customer pays for the product
  • Place – how the product is distributed to the customer
  • Promotion – how the customer is found and persuaded to buy the product

Task

Find a product online – preferably one you like 

Try and explain how the 4 P’s can be applied to your chosen product.

For example, Coca-Cola

Price

Individual – £1

Multi-pack (4) – £3.50

Product

Coca-Cola Glass bottle limited edition. 

Vintage style bottle, metal lid.

Promotion

Product to be sold as:

  1.  a multi-pack 12 bottles (£7)
  2. Meal Deal

Place

  1. Supermarkets
  2. Bars, pubs, restaurants.

The Big Picture

You have been contacted by the local council in Gosport to plan, organise and promote a music festival. 

The festival will be at a suitable location (in Gosport ) you choose, it should cater for up to 500 – 1000 people.

The tasks you need to complete are:

  1. Create a promotional poster for the festival
  2. Create a costing spreadsheet for it
  3. Create a logo  
  4. Create a webpage with useful information 
  5. Write a report to summarise what you have created in this unit

Task 2 – Music Festival ideas – 5 minutes

Jot down your ideas on an A4 paper (teacher to provide)

Points to help you think:

  1. What is the NAME of your festival?
  2. Which venue should you use for your festival?
  3. Who is your ideal audience?
  4. What is your ideal target market?
  5. What will you sell in the stalls? (food, drink, clothes, etc)
  6. What will the attractions include? (how many stages, singers, etc.)
  7. How many tickets do you need to sell to ‘Break Even’ 
  8. How many tickets will you need to sell to make a profit?
  9. How will you make most profit?

Task 3

Make a promotional poster about your music festival.

You can choose your genre of music

Include your logo

https://www.freelogodesign.org/ (online generator) 

https://pixlr.com/x/#editor (Make it yourself)

Examples

  1. Doownload poster

What do you think of this poster?

Who is the target audience?

Whatr are the good features?

What is not do good?

Student responses to the Download Poster

Too dark, not enough colour. Can’t read it. Some of the band names are too small.

Not showing any other festival

It doesn’t really feel like a festival

The logo is distinctive

For somebody who likes the above bands, it is intersting and really shows who is playing

Blog at WordPress.com.

Up ↑