Lesson 3: School Lab Studios
Year 8 – Programming – Mobile app development
Lesson 3: School Lab Studios
Objectives
In this lesson, you will
2
Spot the errors
Starter activity
3
The Turtle Draw App
The purpose of this app is for the user to click the buttons on the screen to move the arrow on the screen and draw shapes.
Unfortunately, there are errors in the app and it is not working as the developer intended.
Spot the errors
Starter activity
4
Debug the app
Did you spot and fix all the errors?
Starter activity
5
Error 1
Error 2
Error 3
User score
Activity 1
We’re now going to apply the final touches to our Tappy Tap App by doing the following:
Instructions
ncce.io/AppLabL3a1
6
Score screen design
Activity 1
Enter design mode and select the score screen.
Add a label and place it where you would like the score to appear.
Change the id to userScoreLbl.
Format the font, size, and position (change the text property to an example score, such as 10).
7
Passing the score into userScoreLbl
Activity 2
We’re going to add code to our app, to tell our program to:
Set the text of the userscore label to the value being held by our score variable.
Where should we place this code?
Think/pair/share.
8
B
A
C
▹
Passing the score into userScoreLbl
Activity 2
Add the following block of code into the correct position.
Customise the properties so that it changes the text to the value of the score variable.
Explorer: Add and code a Play again button.
9
A
▹
School Lab Studios
Activity 3
School Lab Studios is a company that specialises in mobile apps.
You and your partner have been hired to develop a prototype for one of the new apps that they would like to build.
10
School Lab Studios: App Choices
Activity 3
11
KS2 Maths App
Your Weight in Space
Clicky Biscuits
Virtual Pet
Choose your project
Activity 3
You and your partner can now choose your project.
12
Success criteria
Activity 4
Success criteria are used at the end of a project to help judge its success, for example:
Each round must ask 10 questions.
Success criteria should allow for factual yes/no answers.
13
What is wrong with the following criterion?
Must be easy to use.
Success criteria for your app
Activity 4
Discuss with your partner what you think the app should do.
Write down in your project diary success criteria that reflect what you intend your app to be able to do.
Remember that success criteria should only allow for factual yes/no answers.
14
Homework
Homework
Provide designs for any two of the screens that will be part of your app.
The screens must be annotated with:
15
Due: Next lesson
Next lesson
Summary
In this lesson, you…
Identified and resolved some common errors using App Lab
Passed the value of a variable into a label
Chose a project to create and developed success criteria
Next lesson, you will…
Learn how to handle user input
Use decomposition to help break down the task of building the app into more manageable steps
Start making your app
16