AS Level Computing 8 CHAPTER: Fundamentals of structured programming The basics of good programming Algorithms System Flow Charts Symbol Conventions Steps.

Slides:



Advertisements
Similar presentations
DATA PROCESSING SYSTEMS
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 2: Problem Solving
Chapter 1 - An Introduction to Computers and Problem Solving
Information Communication and Technology Class By: Mr. Latibeaudiere March, 2011.
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 1 Program Design
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
1.3 System Design Parts of a System InputProcessOutput Input Devices Central Processing Unit Output Devices The main parts of any computer system.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
1 Shawlands Academy Higher Computing Software Development Unit.
2nd Meeting Computer Essential. Can you named these parts of computer?
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
1 The Software Development Process  Systems analysis  Systems design  Implementation  Testing  Documentation  Evaluation  Maintenance.
Programming Concepts Chapter 3.
Developing an Algorithm
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Algorithms & Flowchart
Computer Basics & Keyboarding. What Is A Computer? An electronic device operating under the control of instructions stored in its own memory unit An electronic.
The Software Development Process
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Submitted To: Rutvi sarang Submitted By: Kushal Bhagat.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Intermediate 2 Computing Unit 2 - Software Development.
The Hashemite University Computer Engineering Department
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Chapter 1 An Overview of Computers and Programming Languages.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
 Problem Analysis  Coding  Debugging  Testing.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Systems Analysis and Design in a Changing World, Fourth Edition
Visual Basic Programming Introduction to Computers Programming.
Chapter One Problem Solving
Unit 2 Technology Systems
A451 Theory – 7 Programming 7A, B - Algorithms.
Introduction to Programming / chapter 3 / COM1022
Chapter One Problem Solving
CSCI-235 Micro-Computer Applications
DDC 1023 – Programming Technique
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1. Introduction to Computers and Programming
Lecture 2 Introduction to Programming
LESSON 2 SYSTEM ANALYSIS & DESIGN PHASE
Introduction to Computer Programming
SECTION 5: INFORMATION PROCESSING
Computers Are Your Future
Information System and Management
Unit# 9: Computer Program Development
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Theory of Computation Turing Machines.
Chapter 1 Introduction(1.1)
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
SYSTEM ANALYSIS & DESIGN PHASE
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Programming Logic and Design Eighth Edition
Introduction to Programming
Presentation transcript:

AS Level Computing 8 CHAPTER: Fundamentals of structured programming The basics of good programming Algorithms System Flow Charts Symbol Conventions Steps Used to Represent the System’s Operation

AS Level Computing AS Computing F452 Design Can you spot the mistake? The aims of programming design are: - match the definition –Do you remember the aims of good programming design? Reliability Maintainability Readability PerformanceStorage saving the programme must be easy to change or modify programme should do what the end user requires the programmer must be able to read and understand the programme the programme must do its job fast and efficiently the programme must ideally occupy as little memory as possible

AS Level Computing AS Computing F452 Structure charts What is an Algorithm? –To design a solution to a problem, it is not enough to design what data is required and how the data is going to be inputted and outputted A well designed algorithm will list every instruction the computer needs to execute to solve the problem The algorithm will show the order that these instructions need to follow in terms of being carried out (executed) to solve the problem Devising Algorithms is essential for you to do well on this unit –An effective design will need to use some actual code with text in prose –An effective design needs to show logic in solving a problem A. A network device for carrying packets B. A section of code detailing what will happen to data being inputted, processed and outputted C. A rhythmic pulse that stimulates the processor

AS Level Computing AS Computing F452 Flow charts A program flow chart uses a diagram to show an overview of the operation of the algorithms in the system The flow chart will show –The tasks to be carried out in the new system –The devices (disk drives, tape drives etc…) that are to be used –The media input, storage and output –The files used by the system (we will look at files later this term) When a Systems Analyst is developing a new computer system, her or his ideas need to be written down. Frequently pictorial representation of how the system will work is easier to understand. TASKS Devices Input/Output

AS Level Computing AS Computing F452 Flow charts Flow charts use a recognised set of conventional symbols to represent how the component parts of the system will work They are used to provide an overview of the system –i.e. the order in which the steps need to be carried out A program flow chart uses a diagram to show an overview of the operation of the algorithms in the system

AS Level Computing AS Computing F452 Example of a systems flow chart Name the symbol boxes Process Symbol Input Symbol Decision Symbol Output Symbol Start Input Card in machine Flow lines are used to show the order in which the steps are to be carried out and connect the symbols together

AS Level Computing AS Computing F452 Example of a systems flow chart Carry out the 2 nd task Create a Flow Chart which will answer the 1st question in your Programming booklets. First of all refer to the homework that you did Tuesday –You have made a list of all the functions that need to be carried out when a supermarket handles the sale of goods at a electronic point of sale terminal (EPOS) Lets go through those answers first

AS Level Computing AS Computing F452 Task 2: Functions for the POS Draw a systems flow chart that shows how the computer system at the supermarket handles the sale of goods at the EPOS (electronic point of sale terminal). 1. Scan the barcode 2. Validate the barcode 3. This could lead to a decision: is the barcode valid – yes or no 4. Use the barcode as a key to locate the product details and decrease the stock level by one 5. Database or records are updated 6. Display product details on the screen, print product details on the receipt 7. Add cost to the total 8. Any more goods to process? – Yes or No 9. Display the total details on the screen, print total details on the receipt Now create the flow chart for Question 1 Chapter 8, Programming booklet Input Process

AS Level Computing AS Computing F452 Example of a systems flow chart Carry out the 3 rd task Create a flow chart which will answer the 2nd question in your Programming booklets. Make a list of all the functions that would enable a customer at a supermarket to have the option of paying for their goods by credit or debit card Lets go through those answers first

AS Level Computing AS Computing F452 Task 3: Functions for the POS Flow chart Number 2 The customers at a supermarket have the option of paying for their goods by credit or debit card. Draw a systems flow chart to show how this process works 1. Debit / credit card is swiped 2. Validate card number 3. Is card number valid? 4. Display rejection notice on VDU 5. Card number, amount and supermarket’s reference number sent to relevant bank 6. Print receipt. Customer confirms that the amount is correct by signing 7. Monies transferred between your account and the supermarket’s Now draw the flow chart for Question 2 Chapter 8, Programming booklet Input Process

AS Level Computing AS Computing F452 Task 4: Flow Chart Question Carry out the Task 4 flow chart questions on your own!Task 4 Answers

AS Level Computing AS Computing F452 Summary What is an Algorithm? –Section / set of instructions (procedures) that the computer needs to execute to solve the problem What are flow chart symbols? Which two of the following are not true. Used to show the order of the steps The tasks to be carried out in the new system Connects the Network components together Connect the symbols The media: input, storage and output The devices like disk drives and tape drives The resolution of the monitor The amount of bytes in a piece of data What are flow lines in the flow chart? Choose two answers. TRUE WRONG

AS Level Computing AS Computing F452 Pseudo-code Pseudo-code is lines of code to show how the system will work. It does not need to use the exact commands used in a real programming language, as long as it shows how the program will work. The programmer can later turn the pseudo-code into real code. It allows programmers to plan out their ideas without getting bogged down in the technicalities of a particular language. It can be used to write code in a very detailed way or just to provide an overview. It is important to be consistent when writing pseudo-code. You are inventing the code, but you have a standard way of writing the code. For example, you can’t use the command Output in one part of the code and then Display in another part of the code where the meaning is the same.