AVCE ICT Unit 7 - Programming Session 9 – Using pseudocode and structured English.

Slides:



Advertisements
Similar presentations
ROSI Express Training: Adding Additional Instructors to a Course Meeting Section.
Advertisements

Microsoft® Small Basic
PROBLEM SOLVING TECHNIQUES
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Coding. Steps to Success 1.Create a PLAN including a detailed statement of requirements (SORs) 2.Write algorithms based on the SORs 3.Write pseudocode.
Chapter 2: Modularization
Algorithms CSC1310 Fall What Is Programming? Programming Programming means writing down a series of instructions that tell a computer what to do.
Programming Types of Testing.
PSEUDOCODE & FLOW CHART
Programming Logic and Design Fourth Edition, Introductory
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Chapter 2- Visual Basic Schneider
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Developing Software Applications Introduction to Programming Fundamentals Scoping in VB Simple Ifs in VB.
1 Lab Session-7 CSIT-121 Fall Introducing Structured Choice 4 The do~While Loop 4 Lab Exercises.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Visual Basic Chapter 1 Mr. Wangler.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Programming.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Programming Lifecycle
Input, Output, and Processing
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
Programming Fundamentals. Today’s Lecture Why do we need Object Oriented Language C++ and C Basics of a typical C++ Environment Basic Program Construction.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
PSEUDOCODE C Programming Technique – Firdaus-Harun.com.
Creating the street of the future. In this project you get to create your own futuristic house using a tool called Google Sketchup. Afterwards you will.
Programming, an introduction to Pascal
I Power Higher Computing Software Development Development Languages and Environments.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
1 Program Planning and Design Important stages before actual program is written.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Introduction Chapter 1 8/31 & 9/1 Imagine! Java: Programming Concepts in Context by Frank M. Carrano, (c) Pearson Education - Prentice Hall, 2010.
1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.
The Hashemite University Computer Engineering Department
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Algorithms and Pseudocode
CODING VOCABULARY.  Binary  A number system based on 2  Hexadecimal  A number system based on 16  Domain  An internet location registered with the.
AVCE ICT – Unit 7 - Programming Session 12 - Debugging.
Chapter 2: Advanced programming concepts Part 3: The user interface Lecture 5 1.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
National Diploma Unit 4 Introduction to Software Development Procedures and Functions.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Visual Basic.NET Windows Programming
Pseudocode and comments
Programming Languages
1-1 Logic and Syntax A computer program is a solution to a problem.
Introduction to Event-Driven Programming
Algorithm & Programming
Chapter 2- Visual Basic Schneider
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
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.
Application Development Theory
Representing Characters
Graph Paper Programming
Algorithms & Pseudocode
Use of Mathematics using Technology (Maltlab)
Programming Right from the Start with Visual Basic .NET 1/e
Graph Paper Programming
Programming in Pseudocode
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
Introduction to Programming
Pseudocode and comments
Presentation transcript:

AVCE ICT Unit 7 - Programming Session 9 – Using pseudocode and structured English

Pseudocode This looks like programming code but isn’t specific to any language The idea being that you can write a general program to hand to a programmer to develop Advantage: Quick, non language specific Disadvantage: When you are learning to program this might feel like an unnecessary step You have to get to grips with the real language and this might be even more confusing

Structured English A good place to start with a program is a statement of the user’s needs followed by a specification Then write out in sentences what the program needs to do at each step All of the time, consider how a computer runs an event driven program Voila! You can write structured English!

Examples A program for adding two numbers and displaying the result: The user types in intNumber1 The user types in intNumber2 Add intNumber1 and intNumber2 Display the total on the VDU screen This isn’t programming code just yet..

Examples Start with general sentences Remove as many of the extra words as you can and just leave the bare minimum If you are taking in input, use the term “read in” or “get”….. If you are displaying data, use the term “print out” All languages have commands to do these and mathematical and logical operations

Examples Read in intNumber1 Read in intNumber2 intTotal=intNumber1+intNumber2 Print out intTotal Now this is like program code Because of this it is called pseudocode Structured English is what it is written in

Examples Write some pseudocode for the following programs: A program to total three numbers and then find the average of all three A program for converting £ into  (Euros)  Just do this last one one way if you wish

Documentation You will get extra marks for having documented the design of your program You can write out the program first using structured English This is a good thing to do as experienced programmers can “dry run” the program on paper first

Return to main Menu