Lesson 5-2 AP Computer Science Principles

Slides:



Advertisements
Similar presentations
Chapter 8 Improving the User Interface
Advertisements

Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
Getting Started With Python Brendan Routledge
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Scratch Programming Cards
FOP: Multi-Screen Apps
Routers and Redundancy
AP CSP: Creating Functions & Top-Down Design
JavaScript/ App Lab Programming:
Sending Binary Messages
Canvas and Arrays in Apps
Development Environment
Unit 2 Technology Systems
AP CSP: The Need for Programming Languages and Algorithms
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
FOP: User Input & Strings
Introduction to Event-Driven Programming
FOP: Buttons and Events
Routers and Redundancy
Event-driven programming
Algorithms Detour - Shortest Path
CS101 Introduction to Computing Lecture 19 Programming Languages
Kodu Game Lab Shaw STEM Lab-2016.
Building an App: Color Sleuth
Understanding an App’s Architecture
Introduction to Operating System (OS)
The Need for Programming Languages
The Need for Algorithms 2 days
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Looping and Random Numbers
Lesson 4-5 AP Computer Science Principles
Understand Windows Forms Applications and Console-based Applications
Lesson 1: Buttons and Events – 12/18
Lesson 10: Building an App: Color Sleuth
Ways to Fix QuickBooks Error Code 6154 Intuit QuickBooks accounting software is one of the best known bookkeeping software used all over the world. In.
Lesson 2: Multi-Screen Apps
Learning to Program in Python
Unit# 9: Computer Program Development
Building an App: Multi-Screen App
Unit 14 Event Driven Programming
Lesson 4: Controlling Memory with Variables
Lesson 2 Programming constructs – Algorithms – Scratch – Variables Intro.
Lesson 17: Building an App: Canvas Painter
LESSON 14 - Building an App: Image Scroller
Lesson 16: Functions with Return Values
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Introduction to AppInventor
Global Challenge Walking for Water Lesson 2.
GRAPHICAL USER INTERFACE GITAM GADTAULA. OVERVIEW What is Human Computer Interface (User Interface) principles of user interface design What makes a good.
GRAPHICAL USER INTERFACE GITAM GADTAULA KATHMANDU UNIVERSITY CLASS PRESENTATION.
ICT Gaming Lesson 2.
ICT Programming Lesson 5:
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Review of Previous Lesson
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Coming to all courses August 31st
Coming to all courses August 31st
Presentation transcript:

Lesson 5-2 AP Computer Science Principles Multi-Screen Apps Lesson 5-2 AP Computer Science Principles

Objectives Students will be able to: Write a simple event-driven program that has multiple screens. Recognize debugging as an important step in developing a program. Use console.log to debug simple issues related to event-driven programming.

Beyond the Chaser Game In the last lesson you ended up making a simple “chaser game” that wasn’t much of a game. In this lesson you’ll learn improve that app by: Adding more screens Adding a way for the game to end.

Coding Buddy Today you will still work independently but there are a few more problems to solve and mysteries to figure out than in the previous lesson. It is recommended that you have at least one coding buddy or thought partner to work through these stages with. Read instructions together, and ask questions of each other. In particular, it’s effective to do prediction tasks with a partner.

Stage 2 - Vocabulary Debugging - Finding and fixing problems in your code or algorithm User Interface (UI) - The “User Interface” or UI of an app refers to how a person (user) interacts with the computer or app. Event-driven program - a program designed to run blocks of code or functions in response to specified events (e.g. a mouse click) Event handling - an overarching term for the coding tasks involved in making your app respond to events by triggering functions.

Stage 2 – console.log Every programming language has some way of display simple plaintext output Printing to the console is a very common technique not only for debugging but also as an aid in program construction and development. In other words, you can use console.log to send messages to yourself to verify the program is doing what you think it’s doing which helps prevent errors down the line. console.log("Message 1"); Messages appear at the bottom of the App Lab screen

Stage 2 Complete Stage 2 In the last 20 minutes of class we are going to do a gallery walk of the games so try and finish before that.

Wrap-Up Today was one of the first times we saw error messages in our programs and started thinking about debugging our code. Is it “bad” to generate an error message? Will every error in our programs generate an error? Why might a programmer actually “like” to get an error message?