COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.

Slides:



Advertisements
Similar presentations
1.4 Programming Tools Flowcharts Pseudocode Hierarchy Chart
Advertisements

Introduction to Flowcharting
Traditional Approach to Design
Chapter 10 The Traditional Approach to Design
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 9: The Traditional Approach to Design Chapter 10 Systems Analysis and Design in a Changing World, 3 rd Edition.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Chapter 2- Visual Basic Schneider
COSC 120 Computer Programming
Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
The Program Development Cycle and Program Design Tools
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Chapter 2: Input, Processing, and Output
Chapter 1 Program Design
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.
CHAPTER 4: ALGORITHM 4.1 Introduction stages identified in the program development process: 1. Problem analysis and specification 2. Data organization.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
CS102 Introduction to Computer Programming
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 9 Moving to Design. The Structured Approach To Designing The Application Architecture Module-an identifiable component of a computer program that.
CIS Computer Programming Logic
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
10 The traditional approach to design Hisham Alkhawar.
Introduction to Computer Programming Using C Session 23 - Review.
CS CS Computing for Business Instructor:David Tucker GTA:Batul Mirza.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Program Development C# Programming January 30, 2007 Professor J. Sciame.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Computer Programming CONTENTS Introduction to Operating Systems Introduction to programming languages Introduction to perl programming language Programming.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CSCI 161 Lecture 3 Martin van Bommel. Operating System Program that acts as interface to other software and the underlying hardware Operating System Utilities.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 1: Introduction to Computers and Programming.
Visual Basic Programming Introduction to Computers Programming.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Programming and Visual Basic
1-1 Logic and Syntax A computer program is a solution to a problem.
Key Ideas from day 1 slides
BASIC PROGRAMMING C SCP1103 (02)
Chapter 2- Visual Basic Schneider
System Design.
Chapter 1. Introduction to Computers and Programming
Chapter 1: Introduction to Computers and Programming
Unit I Flash Cards Start.
Programming Right from the Start with Visual Basic .NET 1/e
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
Flowcharts and Pseudocode
Chapter 2: Input, Processing, and Output
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Introduction to Programming
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008

Outline Input, Processing, Output The Programming Process Procedural and Object Oriented Programming The Parts of a C++ Program The cout Object The #include Directive Variable and Literals Identifiers Data Types: Integers, char, floating point, bool

Input, Processing, Output The three primary activities of a program are input, processing, and output Input: the information the program collects from the outside world -> sent by user, disk, hardware, internet, etc. Processing: some calculation, computation, or manner of using the information gathered Output: info program sends to the outside world See example program

The Programming Process Time to consider the process involved in creating a program Define Visualize Tools – hierarchy chart, flowchart, or pseudocode Check Code, Save, and Compile Correct->Run->Test->Correct Validate

Hierarchy Charts: depicts the structure of a program, beginning with overall task and refining to subtasks Flowchart: diagram that shows the logical flow of programs Pseudocode: cross between human and programming language Get payroll data Calculate gross pay Display gross pay

Example Hierarchy Chart source: Starting out with C++, Gaddis, (2008)

Example Flow Chart source: wikipedia.org

What is software engineering? Field of software engineering encompasses the whole process of crafting computer software Program Specs Charts and diagrams of screen output Hierarchy and flow charts Examples of expected input/output Software designed for testing programs

Procedural vs Object- Oriented Procedural programming – based on procdures (funtions in C++) that are made of programming statements that perform a specific task containing their own variables Object – oriented programming – based on creating objects that both contain information and the means to manipulate that information

The parts of a C++ program