ICT Gaming Lesson 2.

Slides:



Advertisements
Similar presentations
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Advertisements

Program Development and Programming Languages
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2: Algorithm Discovery and Design
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
PRE-PROGRAMMING PHASE
Intro to Programming CST JavaScript. Objectives Define software Identify the different types of software Differentiate the different types of programming.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
CSC-115 Introduction to Computer Programming
Programming Lifecycle
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
1 Program Planning and Design Important stages before actual program is written.
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Understand Problem Solving Tools to Design Programming Solutions
Programming Languages
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Programming Mehdi Bukhari.
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Understand Problem Solving Tools to Design Programming Solutions
Programming Fundamentals
Algorithm and Ambiguity
ALGORITHMS AND FLOWCHARTS
Designing and Debugging Batch and Interactive COBOL Programs
Unit# 9: Computer Program Development
Problem Solving Techniques
Global Challenge Night Sensor Lesson 2.
ALGORITHMS AND FLOWCHARTS
SME1013 PROGRAMMING FOR ENGINEERS
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Design and Implementation
Introduction to Algorithms and Programming
Chapter 1 Introduction(1.1)
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
SME1013 PROGRAMMING FOR ENGINEERS
Global Challenge Night Sensor Lesson 2.
Algorithm and Ambiguity
Flowcharting & Algorithms
Global Challenge Night Sensor Lesson 2.
ICT Programming Lesson 3:
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
CS 1111 Introduction to Programming Spring 2019
ICT Programming Lesson 1:
Global Challenge Night Sensor Lesson 2.
An Introduction to Programming with C++ Fifth Edition
Global Challenge Night Sensor Lesson 2.
Basic Concepts of Algorithm
Global Challenge Night Sensor Lesson 2.
Hour of Code Code.org/lightbot
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Programming Logic and Design Eighth Edition
Structural Program Development: If, If-Else
Presentation transcript:

ICT Gaming Lesson 2

How the Programmer Interacts with the Computer Objectives 10.3.1: Identify the programmer's role in creating games. 10.3.2: Identify common programming languages and applications used to create computer games.

How We Interact with Computers Computer science is the study of computers and how they work. It includes the study of both hardware and software. Computers: store, retrieve and display data (information) to accomplish the specific task.

Programming Languages Software, the programs that computers use, is written in different languages that follow specific rules. That language uses: commands and logic statements Syntax: words and symbols of programming languages. Cryptic code with a bit of English included.

Programmers and Languages Programmers write instructions: A series of statements using the code and syntax for a particular programming language. Common programming languages: C++, .NET, & java Program developers choose the programming languages they will use based on which platform and device the program will be using, such as Windows, Mac, Android or iOS.

Understanding Algorithms Objectives 10.3.3: Compare sequential, iteration (loop) and selection programming structures. 10.3.4: Define the term algorithm (i.e., a set of repeatable steps) and how it applies to problem-solving. 10.3.5: Create an algorithm to solve a problem or complete a task.

Understanding Algorithms An algorithm is a set of step-by-step instructions that must be executed in order to solve a problem or perform a task. They tell the computer what to do and how to do it.

Successfully Completing a Task In order to successfully complete a task, you must be able to: identifying and understand the problem, use logic to plan a solution to a problem, create the procedures needed to execute the solution, and finally test and refining the solution.

Computing Cycle Computer programs contain data and a set of instructions that tells a computer what to do to accomplish a specific task or solve a particular problem using the data provided. When a computer performs the programmed tasks, that is called “Executing” instructions.

Programming Structures Efficient algorithms make use of three main programming structures: sequential, selection and repetition (or looping). A sequential programming structure is a sequence of instructions that the computer follows in order, one by one, from top to bottom.

Programming Structures Selection programming structure allows the computer to make a selection between alternative conditions (for example, if this condition exists, do this — if not, do that). The computer first assesses the condition and then makes a decision about how to proceed. An example of a selection structure is the if/else statement.

Programming Structures Repetition or looping programming structures instruct the computer to repeat a set of instructions, called a loop, until some condition is met. Repetition structures include the while, do/while and for statements.

Introduction to Flowcharts & Pseudocode Objectives 10.3.6: Use pseudocode to model a game program's flow. 10.3.7: Define logic errors and identify them in a game program or model.

Flowcharts Flow charts are graphical diagrams that show the steps or decision process contained in an algorithm. Flow charts contain different symbols to represent the purpose or process of a particular step.

Game Controller Flowchart

Pseudocode Pseudocode is a way of writing the details of algorithm steps in plain text using short phrases Benefit: They allow the programmer to focus on the logic of the algorithm and make refinements before translating it into programming language statements

Programming Logic Logic statements control the flow of a program. They are a specific form of IF…THEN…ELSE statements. IF a condition is true (or an action occurs), THEN a reaction (or effect) will occur. For example, if the condition "Do you know your password?" is answered TRUE (yes), THEN you can access the website. If the condition is FALSE (no), then the ELSE event is initiated, which is "You cannot access the website.”

Logic Statements Control the flow of a program Condition /Cause   Condition /Cause Action/Effect IF I am tired THEN I will take a nap I am thirsty I will drink water I have a test I will study

Programming Errors ERROR DESCRIPTION LOGIC A logic error causes the program to produce unexpected results. Common logic errors include incorrect sequence of instructions or wrong formula used in a calculation. Logic errors can be difficult to identify, because the program still runs but it does not do what you expect it to do. SYNTAX A syntax error is usually found by the compiler in the computer when it does not understand or recognize the code as typed. Common syntax errors include misspelled words or missing code. Syntax errors normally stop the program from running successfully. RUNTIME A runtime error occurs when the program is running. It generally means a piece of code cannot be loaded or contains an error that causes the program to stop.

Testing & Debugging Debugging (troubleshooting): finding and fixing errors