Learning outcomes 2 Developing Code – Input Output Model

Slides:



Advertisements
Similar presentations
Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
Advertisements

PROBLEM SOLVING TECHNIQUES
Chapter 2: Problem Solving
Chapter 10 Algorithmic Thinking. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives List the five essential.
© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
A452 – Programming project – Mark Scheme
1 Design and Analysis of Algorithms تصميم وتحليل الخوارزميات (311 عال) Chapter 1 Introduction to Algorithms.
WHAT IS THIS? OBJECTIVE AND OUTCOMES Candidates should be able to: Describe and explain the CPU as fetching, decoding and executing of instructions and.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Introduction to Algorithms By Mr. Venkatadri. M. Two Phases of Programming A typical programming task can be divided into two phases: Problem solving.
Computational Thinking – Lesson 3 Lesson Objective To be able to construct an algorithm and flowchart for a given problem.
Control Structures (A) Topics to cover here: Introduction to Control Structures in the algorithmic language Sequencing.
1 Program Planning and Design Important stages before actual program is written.
Computer Science: A Structured Programming Approach Using C1 2-7 Input/Output Although our programs have implicitly shown how to print messages, we have.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
Algorithms and Pseudocode
Starter – Its the small things in life What’s wrong with this code Height = 10 Width = 10 A = Height * Width Print A Remember to check: Spelling Spacing.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
 Problem Analysis  Coding  Debugging  Testing.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Learning outcomes 5 Developing Code – Using Flowcharts
Algorithms and Problem Solving
3.1 Fundamentals of algorithms
INTRODUCTION TO PROBLEM SOLVING
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
ALGORITHMS part-1.
Chapter 2: Input, Processing, and Output
A Level Computing – A2 Component 2 1f, 1g, 1h, 1i, 1j.
Data Structures and Algorithms
Chapter 2- Visual Basic Schneider
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Topics discussed in this section:
Roadmap to Programming work, right, fast KISS
Unit# 9: Computer Program Development
Learning to Program in Python
Tonga Institute of Higher Education
Algorithm An algorithm is a finite set of steps required to solve a problem. An algorithm must have following properties: Input: An algorithm must have.
Programming Funamental slides
Global Challenge Night Sensor Lesson 2.
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Problem Solving.
The PlayStation Example
Learning Intention I will learn about evaluating a program.
Quantum Computation and Information Chap 1 Intro and Overview: p 28-58
Global Challenge Night Sensor Lesson 2.
Algorithms and Problem Solving
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
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.
Operating Systems p.describe the characteristics of knowledge-based systems; q.describe the purpose of operating systems; r.describe the characteristics.
Global Challenge Night Sensor Lesson 2.
Part 6 Q26 to Q30 of National 5 Prelim
Chapter 2: Input, Processing, and Output
Global Challenge Night Sensor Lesson 2.
Learning Intention I will learn about the different types of programming errors.
Basic Concepts of Algorithm
Global Challenge Night Sensor Lesson 2.
Unit 2: Computational Thinking, Algorithms & Programming
Learning Intention I will learn about the standard algorithm for input validation.
WJEC GCSE Computer Science
Presentation transcript:

Learning outcomes 2 Developing Code – Input Output Model You must be able to:   explain simple algorithms in terms of their inputs, processing and outputs determine the purpose of simple algorithms demonstrate an understanding that more than one algorithm can be used to solve the same problem compare the efficiency of algorithms, explaining how some algorithms are more efficient than others in solving the same problem obtain user input from the keyboard output data and information from a program to the computer display. © Steve Cushing 2016

Inputs, processing and outputs 2 Developing Code – Input Output Model Inputs, processing and outputs A computer can be described using a simple model as shown on the next slide. The input stage represents the flow of data into the process from outside the system. The processing stage includes all tasks required to effect a transformation of the inputs.   The output stage is where the data and information flow out of the transformation process. © Steve Cushing 2016

2 Developing Code – Input Output Model © Steve Cushing 2016

More than one algorithm can be used to solve the same problem 2 Developing Code – Input Output Model More than one algorithm can be used to solve the same problem There will always be a number of methods to solve the same problem, but you always need to create ordered steps to solve any of these problems. What makes the best solution and what would lead to the best algorithm? The first criteria we need to consider is does the solution: work complete its task in a finite or reasonable amount of time? © Steve Cushing 2016

Comparing the efficiency of algorithms 2 Developing Code – Input Output Model Comparing the efficiency of algorithms The next step is to determine which of our solutions is the best or most efficient. There are generally two criteria used to determine whether one computer algorithm is better than another and these are: the space requirements (such as how much memory is needed to complete the task) the time requirements (such as how much time it will take to complete the task). © Steve Cushing 2016

User input from the keyboard 2 Developing Code – Input Output Model User input from the keyboard We can get user input by calling this in our code. In AQA pseudo-code we use the following syntax:   USERINPUT © Steve Cushing 2016

Output data and information from a program to the computer display 2 Developing Code – Input Output Model Output data and information from a program to the computer display We can send to a display by calling this in our code. In AQA pseudo-code we use the following syntax:   OUTPUT © Steve Cushing 2016

Input/output User input USERINPUT Example a ← USERINPUT 2 Developing Code – Input Output Model Input/output User input USERINPUT Example     a ← USERINPUT © Steve Cushing 2016

Output OUTPUT StringExp Example OUTPUT a 2 Developing Code – Input Output Model Output OUTPUT StringExp   Example OUTPUT a © Steve Cushing 2016