Principles of Procedural Programming

Slides:



Advertisements
Similar presentations
Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
Advertisements

Software development process. Explanation of the iterative nature of the software development process.
Programming Paradigms and languages
1 C++ Syntax and Semantics The Development Process.
Programming recap. Do you know these? LOW LEVEL 1 st generation: machine language (110011) 2 nd generation: assembly language (ADD, SUB) HIGH LEVEL 3.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
Reasons to study concepts of PL
Program Design and Development
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 2: Input, Processing, and Output
Class 0: Review and Perspective. cis 335 Fall 2001 Barry Cohen Class info n Barry Cohen n n Office hours: W 3:15-4:40.
Guide To UNIX Using Linux Third Edition
CSC 111 Course orientation
Guide To UNIX Using Linux Third Edition
A452 – Programming project – Mark Scheme
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 1 Program Design
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
C Programming for Embedded Systems. fig_06_00 Computer Layers Low-level hardware to high-level software (4GL: “domain-specific”, report-driven, e.g.)
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
Programming Languages: Telling the Computers What to Do Chapter 16.
High-Level Programming Languages: C++
CIS Computer Programming Logic
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Chapter 8 Arrays and Strings
Advanced Programming Collage of Information Technology University of Palestine, Gaza Prepared by: Mahmoud Rafeek Alfarra Lecture 2: Major Concepts of Programming.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
EGR 2261 Unit 8 One-dimensional Arrays  Read Malik, pages in Chapter 8.  Homework #8 and Lab #8 due next week.  Quiz next week.
Introduction to Computer Programming Using C Session 23 - Review.
Computing Essentials 2014 Programming and Languages © 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
CSEB114: PRINCIPLE OF PROGRAMMING Course Introduction.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Python – May 11 Briefing Course overview Introduction to the language Lab.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Chapter 6 Programming Languages (1) Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Advanced Computer Science Lesson 4: Reviewing Loops and Arrays Reading User Input.
Chapter One An Introduction to Programming and Visual Basic.
2016 N5 Prelim Revision. HTML Absolute/Relative addressing in HTML.
The Hashemite University Computer Engineering Department
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Higher Computing Science 2016 Prelim Revision. Topics to revise Computational Constructs parameter passing (value and reference, formal and actual) sub-programs/routines,
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
Scott Marino MSMIS Kean University MSAS5104 Programming with Data Structures and Algorithms Week 1 Scott Marino.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
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.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
1 Sections 3.1 – 3.2a Basic Syntax and Semantics Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to the C Language
The C Programming Language
Documentation for Developers
Unit 6 Assignment 2 Chris Boardley.
Units with – James tedder
Software development process
Fundamental Programming
Chapter 2: Input, Processing, and Output
Presentation transcript:

Principles of Procedural Programming Week 1and 2 SG Unit 1 pp. 1-33 TB. Chapter 3

General Outline Core of commercial application development projects Also used by event-driven systems and object- oriented platforms Where? Critical command content – objects, events, listeners Many languages We’ll explore underpinnings

4 Main Sections in Outline LO1: Principles [Unit 1] LO2: Design [Unit 2] LO3: Implement [Unit 3] LO4: Test [Unit 4]

Principles LO1: Understand the principles of procedural programming Discuss the principles Discuss the characteristics Discuss the features of procedural programming

Design LO2: Be able to design procedural programming solutions Identify the program units and data and file structures required to implement a given design Design a procedural programming solution for a given problem

Implement LO3: Be able to implement procedural programming solutions Select and implement control structures to meet the design algorithms Correctly use parameter passing mechanisms Implement a procedural programming solution based on a prepared design

Test (1) LO4: Be able to test procedural programming solutions Critically review and test a procedural programming solution Analyse actual test results against expected results to identify discrepancies

Test (2) Evaluate independent feedback on a developed procedural program solution and make recommendations for improvements Create onscreen help to assist the users of a computer program Create documentation for the support and maintenance of a computer program

Now let’s get started with LO1: The Principles Characteristics of programming Types of languages Reasons for choice Data structures Data types Programming syntax and standards

1 Characteristics of Programming p.17 Low-level languages High-level languages Generations, e.g. 1st, 2nd, 3rd, 4th, 5th Programs Applications Instructions Algorithms

2 Types of languages p.21 Procedural languages Object-oriented Event-driven Others e.g. script and mark-up languages Simple overviews and uses

3 Reasons for choice p. 22 Organisational policy Suitability of features and tools Availability of trained staff Reliability Development and maintenance costs Expandability

4 Data Structures Variables, e.g. naming conventions, local and global variables, arrays (one-dimensional, two-dimensional) File structures; loops, e.g. conditional (pre-check, post- check, break-points), fixed Conditional statements; Case statements Logical operators Assignment statements Input statements Output statements

5 Data Types p. 23 Constants and literals Integer Floating point Byte Date Boolean Others e.g. character, string, small int Choice of data types, e.g. additional validation, efficiency of storage

6 Programming Syntax and Standards p. 25 Command rules Variable declaration Use of comments Code layout Indentation

Test Your Knowledge p. 33 In your own words, discuss the reasons behind the choice of language What is the main difference between OOP and event-driven programming? Distinguish between high and low-level programming languages and give examples of each

Resources Study Guide – links to Gaddis (2003) Gaddis, T. 2013. Starting out with programming logic and design. 3rd edition http://www.cplusplus.com/doc/tutorial/ http://www.cprogramming.com/ [Notice the 2 languages: C++ and C]  homework!