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

Slides:



Advertisements
Similar presentations
P3- Represent how data flows around a computer system
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
Fundamentals Computing Components 01/23/15. Hardware Physical Components Bit  Open or Closed Switch  High or Low Signal  Zero or One Byte  Eight bits.
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.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
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.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
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.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Introduction to Computer Systems and the Java Programming Language.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
CISC 110 Day 1 Hardware, Algorithms, and Programming.
CPSC- 120 Principle of Computer Science I Computer = Hardware + Software.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computer Architecture
Internal Lab Registeration labreg/lab/signup.aspxhttp:// labreg/lab/signup.aspx
J. Stover, CSD-HS.  A computer is an electronic device that is programmed to accept data (input), process it into useful information (output), and store.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
By Tom and James. Hardware is a physical part of the system that you can pick up and move. There are two types of hardware, external and internal. External.
2 nd Semester Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming
Parts of a Computer.
What Do Computers Do? A computer system is
Java Programming: From the Ground Up
BASIC PROGRAMMING C SCP1103 (02)
Engineering Problem Solving With C An Object Based Approach
BASIC PROGRAMMING C SCP1103 (02)
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1. Introduction to Computers and Programming
Chapter 1: Introduction to Computers and Programming
Computers: Hardware and Software
Overview of Computer system
Computer System.
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 Why Program? Computer Systems: Hardware and Software Programs and Programming Languages What is a Program Made of? Input, Processing, and Output The Programming Process Procedural and Object-Oriented Programming

Why Program? What does a computer do? It is useful because it can be programmed, or told to do many different tasks. They are tools that make almost every profession easier to do. A computer is a machine specifically designed to follow instructions.

Why Program? Programs are called software, or a set of instructions that tells a computer what to do. Programs in the real world consist of the following: Logical flow of instructions Mathematical procedures Appearance on the screen The way the information is presented to the user The programs “user-friendliness” Manuals and other written documentation

Computer Systems: Hardware and Software Starting out with C++, Pearson, (2006)

Computer Systems: Hardware and Software Starting out with C++, Pearson, (2006)

Computer Systems: Hardware and Software CPU: Controls the computer’s operations and performs arithmetic functions Main Memory: Random Access Memory, or RAM, is the part of a computer that temporarily holds or stores information Consists of cells and bits (a “switch” that can be a 0 or 1 Each Cell has 8 bits, or a byte. Each cell is assigned a location number called an address.

Computer Systems: Hardware and Software

Other Devices Secondary Storage: Hard Disk, USB Stick Input Devices: Any devices that help the computer collect information from the outside world Output Devices: Devices that presents the computer’s information to the outside world.

Software Generally two categories of software in a computer: Operating system Application Software Single Tasking Multi-Tasking Single-User Multi-User

Programs and Programming Languages Computer Program: Set of instructions that tells a computer how to solve a problem or perform a task Algorithm: A set of well defined steps for performing a task or solving a problem A computer only understands 0’s and 1’s Programming Languages were invented to ease the task of programming Examples of Languages: C/C++, C#, JAVA

Programming Languages Low Level vs High Level Your very first program!

Source Code, Object Code, and Executable

What is a program made of? Language Elements

Lines, Statements, and Variables Line: single line as it appears in the body of the program (can be empty) Statement: complete instruction that causes the computer to perform an action Variable: named storage location in the computers memory for holding a piece of information. Usually stored in RAM. Variable definition/declaration Not the same thing! There are generally two types of variables: numbers and characters. Number: used to compute Characters: used for display