A451 Theory – 7 Programming 7A, B - Algorithms.

Slides:



Advertisements
Similar presentations
A Level Computing#BristolMet Session Objectives#U2 S2 MUST describe the steps of an algorithm using a program flowchart SHOULD explain the data types and.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
PSEUDOCODE & FLOW CHART
Pseudocode.
Chapter 3 Planning Your Solution
Computer Programming Basics. Computer programs are a detailed set of instructions given to the computer They tell the computer: 1. What actions you want.
Chapter 1 Pseudocode & Flowcharts
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
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.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
Structured Programming (4 Credits)
AS Level ICT Data entry: Creating validation checks.
Intermediate 2 Computing Unit 2 - Software Development.
The Hashemite University Computer Engineering Department
Problem, Problem Solving, Algorithm & Flow Charts –Part 1 Presented By Manesh T Course:101 CS 101CS Manesh T1.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Algorithms and Flowcharts
AS Level Computing 8 CHAPTER: Fundamentals of structured programming The basics of good programming Algorithms System Flow Charts Symbol Conventions Steps.
7 - Programming 7J, K, L, M, N, O – Handling Data.
Component 1.6.
Chapter One Problem Solving
Starter What does the following code do?
Component 1.6.
ALGORITHMS AND FLOWCHARTS
Understand Problem Solving Tools to Design Programming Solutions
Introduction to Computing Science and Programming I
Output “Funds not available”
INTRODUCTION TO PROBLEM SOLVING
Component 1.6.
Problem , Problem Solving, Algorithm & Flow Charts –Part 1
Entry Ticket: Algorithms and Program Construction
Chapter 2: Input, Processing, and Output
7 - Programming 7P, Q, R - Testing.
Be A programmer in Steps
Chapter 2- Visual Basic Schneider
CS1001 Programming Fundamentals 3(3-0) Lecture 2
A451 Theory – 7 Programming 7A, B - Algorithms.
Understand Problem Solving Tools to Design Programming Solutions
Lecture 2 Introduction to Programming
Introduction To Flowcharting
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.
Introduction to Algorithm – part 1
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
Programming Logic n Techniques
CIS115 Education for Service-- snaptutorial.com
CIS 115 Teaching Effectively-- snaptutorial.com
Chapter 1 Program Development
Print slides for students reference
Learning to Program in Python
Program Design Introduction to Computer Programming By:
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
1) C program development 2) Selection structure
Chapter 2- Visual Basic Schneider
Introduction to Algorithms and Programming
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Software Development Process
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
Flowcharts and Pseudo Code
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Chapter 2: Input, Processing, and Output
WJEC GCSE Computer Science
Introduction to Programming
Presentation transcript:

A451 Theory – 7 Programming 7A, B - Algorithms

Learning Intentions To develop an understanding of how algorithms are used to represent computer systems and programs

Assessment Outcomes 7A - understand algorithms (written in pseudocode or flow diagram), explain what they do, and correct or complete them 7B - Produce algorithms in pseudocode or flow diagrams to solve problems.

7 – Understanding Algorithms In computing we write programs or create computer systems to “solve a problem”. The problem is the need or requirement we have to meet. Before you can code the solution to the problem you must first solve it. The outline of a solution is called an algorithm. An algorithm is defined as: a series of steps to solve a problem. For your GCSE you need to be able to represent algorithms in two different ways: Flow Charts Pseudocode

7A – Flow Chart Algorithms Symbol Name Use Terminator Show where the program starts and stops Inputs Shows an input into the system. Can be something that the user types, or that is scanned in (like a barcode) Decision Box Must always ask a question. Takes the program in different routes dependent upon what the answer. Process Something happens – must include a verb! Add, subtract, divide, change, set, etc. Storage Save to a file or database. A system flow chart is an industry‐standard design tool that is used to show an algorithm diagrammatically. There are standard symbols that you will need to understand: Terminators Inputs Decision Boxes Process Storage

7B – Flow Chart Example A computerized form prompts a user to enter their email address. The validation rules check if the address has an @ symbol in it. If it doesn’t, an error message is displayed, the text box is cleared and the system asks the user to enter the email address again. This continues until an appropriate address is entered. The system then checks that the email address has been typed in lowercase, if not it converts it to lowercase. Once the email address is ok it is stored in the customer database.

7A/B - Pseudocode Pseudocode is when we write an algorithm in programming‐style constructs but not in an actual programming language. A computerized form prompts a user to enter their email address. The validation rules check if the address has an @ symbol in it. If it doesn’t, an error message is displayed, the text box is cleared and the system asks the user to enter the email address again. This continues until an appropriate address is entered. The system then checks that the email address has been typed in lowercase, if not it converts it to lowercase. Once the email address is ok it is stored in the customer database. INPUT emailaddress If emailaddress contains ‘@’: if email address is lowercase: store in CustomerFile else: convert to lowercase Else: display error message

Crib – Fundamental topics Define the term algorithm Explain what algorithms are used for Explain what Flow Charts and Pseudocode are used for Explain the 5 different flow chart shapes Draw an example of a flow chart Write an example of Pseudocode

Exam Questions I have ripped off every exam question for Unit 1 – Fundamentals of Computing.. Answer all of the questions in the A, B, C folder. Self Assess them all. Get me to check them!