output in applabgorskicompsci.ca/ics2o/unit1/ppt5_outputinapplab.pdfthe output blocks changes the...
TRANSCRIPT
![Page 1: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/1.jpg)
Output in AppLabSheet 1.5
![Page 2: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/2.jpg)
Output Code Makes the
Output Device Do Something
![Page 3: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/3.jpg)
We Change the Screen Output
Images Change
Text Changes
![Page 4: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/4.jpg)
We Can Also Play Sounds
Meow!!!
![Page 5: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/5.jpg)
The Output Blocks
Changes the text.
Changes the image.
Plays a sound.
Changes the screen.
![Page 6: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/6.jpg)
How many
widgets?
![Page 7: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/7.jpg)
How many
widgets?
7
![Page 8: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/8.jpg)
How many
widgets?
7
How many types of widgets?
![Page 9: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/9.jpg)
How many
widgets?
7
How many types of widgets?
3
![Page 10: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/10.jpg)
How do you know how
many onEventsyou need?
![Page 11: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/11.jpg)
How do you know how
many onEventsyou need?
Count the buttons!
You need one onEventfor each button.
![Page 12: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/12.jpg)
What are the ids of
the buttons?
![Page 13: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/13.jpg)
What are the ids of
the buttons?
Text id?
![Page 14: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/14.jpg)
What are the ids of
the buttons?
Text id?
Picture id?
![Page 15: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/15.jpg)
What are the ids of
the buttons?
Text id?
Picture id?
![Page 16: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/16.jpg)
Which widgets need
ids?
![Page 17: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/17.jpg)
Which widgets need
ids?
All of the buttons
Any images or code that change.
Why?
![Page 18: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/18.jpg)
Which widgets need
ids?
All of the buttons
Any images or code that change.
Why?
It makes the code easier to
read.
![Page 19: Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the text. Changes the image. Plays a sound. Changes the screen](https://reader035.vdocuments.us/reader035/viewer/2022071213/602bf5c477e58a3d526effce/html5/thumbnails/19.jpg)
Which widgets need
ids?
All of the buttons
Any images or code that change.
Why?
It makes the code easier to
read.