Objectives:
Build an app that plays a "meow" sound when the user pets the cat.
Use the video tutorials to build app.
Identify the components, properties, and code (blocks) in the App Inventor environment.
Watch the Video about the "Hello Purr" App that you will build today.
Be able to answer the question:
What does the user do to make the cat meow?
Directions:
Click here to open App Inventor with the "Hello Purr" template. All of the media files you need are already uploaded in the template.
Follow the video tutorial to make an app that has an instruction label and contains the following elements:
A button that has an image of a cat
That plays a sound when you press the cat button
Tips:
Make sure to pause the video so that you can repeat the same programming moves as the teacher in the video.
You can also slow down or speed up the video.
You can also add captions and change the language.
It sometimes works well to split your screen, with the video on one side, and App Inventor on the other.
Practice pair programming, and remember to switch driver and navigator roles every 5-10 minutes.
Start the the MIT AI2 Companion app on your phone or tablet.
In App Inventor, click Connect and then select AI Companion. This will display a 6-letter code both as a QR code and as plain text.
On the device, scan the barcode or type in the 6-letter code and click Connect to App Inventor. Your app should display.
Test your app to make sure it works as you expect.
Want a spicy challenge? Use the Accelerometer to make the cat purr when you shake it!
If you finish early: Computer Science Concept Review
***For teachers: The links go to Code.org Express 2020 version
Conditionals
Variables
Functions
Activity 1 - Express lesson 21