Lesson 2: Multi-Screen Apps

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

Software Development. Chapter 3 – Your first Windows 8 app.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.
CMSC 202 Exceptions. Aug 7, Error Handling In the ideal world, all errors would occur when your code is compiled. That won’t happen. Errors which.
Learning the skills for programming Advanced Visual Programming.
Moving Around in Scratch The Basics… -You do want to have Scratch open as you will be creating a program. -Follow the instructions and if you have questions.
Overview of this morning What … is computing? Why … is computing an important skill to learn? What … will my child be learning in computing lessons?
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
 Learn the mechanics of using App Inventor to build apps.  Learn how to design an app’s user interface with the App Inventor Designer, and its behavior.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
Visual Programming? (and FRIDAY!)
Computers and Programming
Error Analysis Logic Errors.
FOP: Multi-Screen Apps
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
Development Environment
Chapter 2: The Visual Studio .NET Development Environment
Branching Error (a.k.a. the VM Program Instruction Break Error)
Unit 2 Technology Systems
Object-Orientated Programming
Unit 3: Lesson 1 - The Need for Programming Languages
Chapter 8: Main Memory.
Chapter 1: An Introduction to Visual Basic 2015
Introduction to Event-Driven Programming
FOP: Buttons and Events
Event-driven programming
Lesson 5-2 AP Computer Science Principles
Engineering and Debugging an App Chapter 15
Testing and Debugging.
CS101 Introduction to Computing Lecture 19 Programming Languages
Introduction to Operating System (OS)
The Need for Programming Languages
EET 2259 Unit 3 Editing and Debugging VIs
Understand Windows Forms Applications and Console-based Applications
Lesson 1: Buttons and Events – 12/18
Lesson 10: Building an App: Color Sleuth
CS 240 – Lecture 11 Pseudocode.
Building an App: Multi-Screen App
Lesson 8: Boolean Expressions and "if" Statements
CSE 154 Lecture 22: AJAX.
Lesson 4: Controlling Memory with Variables
Hands-on Introduction to Visual Basic .NET
Lesson 17: Building an App: Canvas Painter
CIS16 Application Development Programming with Visual Basic
How to Run a Java Program
LESSON 14 - Building an App: Image Scroller
Lesson 16: Functions with Return Values
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Lecture Set 3 Introduction to Visual Basic Concepts
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
Lesson 5: Building an App: Clicker Game
Creating Functions with Parameters
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Operating Systems.
Chapter One: An Introduction to Programming and Visual Basic
Programming.
Introduction to AppInventor
Programming Lists of Data 靜宜大學資管系 楊子青
ICT Gaming Lesson 2.
Tonga Institute of Higher Education
ICT Programming Lesson 5:
Introduction to Snap Programming
CMSC 202 Exceptions.
Presentation transcript:

Lesson 2: Multi-Screen Apps UNIT 4 – 12/19/17

VOCABULARY ALERT: Debugging - Finding and fixing problems in an algorithm or program. 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 a program respond to events by triggering functions.

Use the setScreen command to change screens with code The Debug Console area is an important tool for programmers. You've seen it display error messages, but you can also have your program display messages there.

Debugging is a vital skill for a programmer Debugging is a vital skill for a programmer. If you cannot debug your own code, you are limited in what you can accomplish. Fortunately, you can learn this skill – keep practicing!

This lesson is one of the first times you will likely have consistently generated and responded to error messages. You may (incorrectly) view error messages as “bad,” when in reality they are an entirely normal part of programming and extremely useful when debugging code. In fact, logical error messages, which can be “silent" and don’t generate error messages are much worse, since they are much harder to catch. Use this early moment to normalize getting error messages and needing to debug code.

Programming and debugging is like getting dressed up to go out Programming and debugging is like getting dressed up to go out. You put on some clothes that you think will look good but then you have to look in the mirror, make some adjustments and decisions, maybe even realize you need to go a different direction entirely, and so on – you are debugging your outfit. Writing a program is initially is like throwing on some clothes, and running the program is like looking in the mirror for the first time. You do it to see what it looks like, knowing that you’re going to have to make some adjustments. But looking in the mirror frequently to see what everything looks like together actually speeds up the process. Getting ready to go out, putting on makeup or combing your hair without looking in the mirror would not only slow things down, it’s foolish. The Run. Test. Debug. pattern of behavior is part of the programming process, just like using a mirror is part of making yourself presentable.

Are you comfortable adding buttons, images and text to an app Are you comfortable adding buttons, images and text to an app? Are you comfortable adding a simple onEvent handler for a button or image? Review Lesson 1 if you are not.

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 and adding a way for the game to end.

It is recommended that each of you have at least one coding buddy or thought partner to work through these stages with. You can read instructions together, and ask questions of each other. In particular, it's effective to have you do prediction tasks with a partner. You do have to do your own Code Studio work.

Work through the Levels in Code Studio Work through the Levels in Code Studio. Show me the finished game for credit! You also have homework.