Chapter 1 Getting Acquainted With Computers, Programs, and C++

Slides:



Advertisements
Similar presentations
Introduction to Computer Programming Nai-Wei Lin Department of Computer Science and Information Engineering National Chung Cheng University.
Advertisements

INTRODUCTION OF COMPUTER
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Computer Hardware.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Topic 1: Introduction to Computers and Programming
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.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Computer System Alanoud Al Saleh. Computer systems Are defined as: A machine for solving problems. Specifically the modern computer is high-speed electronic.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
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.
COMPUTER SCIENCE I C++ INTRODUCTION
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
BLOCK DIAGRAM OF COMPUTER
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 An Overview of Computers and Programming Languages.
Chapter 3 Computer Hard ware
Topics Introduction Hardware and Software How Computers Store Data
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Introduction to Computer Systems and the Java Programming Language.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Computer Organization & Assembly Language © by DR. M. Amer.
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Parts of the Computer System
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
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 Fundamentals MSCH 233 Lecture 1. What is a computer? A computer is an electronic machine which can accept data in a certain form, process the.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
ICS2O-What is Computer and Information Science There is a wide variety of definitions for what a computer is or what it does. Our definition for the computer.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
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.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
Chapter 1 Introduction 2nd Semester H
Chapter 1: An Overview of Computers and Programming Languages
Topics Introduction Hardware and Software How Computers Store Data
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Computer Electronic device Accepts data - input
Topics Introduction Hardware and Software How Computers Store Data
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Computer Electronic device Accepts data - input
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Computer components.
Presentation transcript:

Chapter 1 Getting Acquainted With Computers, Programs, and C++

Chapter 1 A Typical PC

Chapter 1 The Hardware

Chapter 1 The Central Processing Unit (CPU) The central processing unit (CPU) is the brain and nerve center of the entire system. This is where all of the calculations and decisions are made. In a PC system, the entire CPU is contained within a single integrated circuit (IC) chip called a microprocessor.

Chapter 1

Typical Operations Performed by the ALU Addition + Subtraction  Multiplication* Division/ Modulus (Remainder)% Equal to== Not equal to!= Less than< Less than or equal to<= Greater than> Greater than or equal to>=

Chapter 1 Primary Memory Primary memory often is called main working memory. The reason for this is that primary, or main, memory is used to store programs and data while they are being “worked,” or executed, by the CPU.

Chapter 1 Binary Values bit0 or 1 byte8 bits kilobyte(KB)1024 bytes megabyte(MB)1,048,576 bytes gigabyte(GB)1,073,741,824 bytes

Chapter 1

Secondary Memory Secondary memory, sometimes called bulk or mass storage, is used to hold programs and data on a semi-permanent basis. The most common types of secondary memory used in PC systems are magnetic disks and CDs.

Chapter 1 Input Input is what goes into the system. Input devices are hardware devices that provide a means of entering programs and data into the system. The major input devices for a PC system are the keyboard, mouse, and disk drive.

Chapter 1 Output Output is what comes out of the system. Output devices are hardware devices that provide a means of getting data out of the system. The four major output devices with which you will be concerned are the display monitor, printer, disk drive, and modem.

Chapter 1 Loading and Saving Your C++ Programs

Chapter 1 The Fetch/Execute Cycle The fetch/execute cycle is what takes place when you run a program.

Chapter 1 The Software Computer software can be likened to the driver of an automobile. Without the driver, nothing happens. In other words, the computer hardware by itself can do nothing. A set of software instructions that tells the computer what to do is called a computer program.

Chapter 1 Machine Language All of the hardware components in a computer system, including the CPU, operate on a language made up of binary 1’s and 0’s. A CPU does not understand any other language.

Chapter 1 Assembly Language Assembly language employs alphabetic abbreviations called mnemonics that are easily remembered by you, the programmer. For instance, the mnemonic for addition is ADD, the mnemonic for move is MOV, and so forth.

Chapter 1 Operating Systems An operating system, or OS, is the “glue” that binds the hardware to the application software. Actually, an operating system is a collection of software programs dedicated to managing the resources of the system.

Chapter 1 High-Level Language A high-level language consists of instructions, or statements, that are similar to English and common mathematical notation. When programming in a high- level language, you do not have to concern yourself with the specific instruction set of the CPU. Rather, you can concentrate on solving the problem at hand.

Chapter 1 Language Translation A source program is the one that you write in the C++ language and that normally has a file extension of.cpp. An object program is the binary machine language program generated by the C++ compiler, which always has a file extension of.obj.

Chapter 1 C++ Translation

Chapter 1 Structured vs. Object-Oriented Languages The C language is a structured language that allows complex problems to be solved using a modular, top/down, approach. The C++ language contains the C language for structured programming, but in addition extends the C language to provide for object-oriented programming (OOP).

Chapter 1 Object-oriented programming (OOP) allows complex problems to be solved using more natural objects that model the way we humans think about things.

Chapter 1 Hello World /* NAME: ANDREW C. STAUGAARD JR. CLASS: CS1 PROGRAM TITLE: HELLO WORLD DATE: 5/16/01 THIS PROGRAM WILL DISPLAY THE MESSAGE "Hello World" TO THE SYSTEM MONITOR */ //PREPROCESSOR SECTION #include //FOR cout //MAIN FUNCTION SECTION int main() { //BEGIN MAIN FUNCTION BLOCK cout << "Hello World"; //DISPLAY MESSAGE TO MONITOR return 0; } //END MAIN FUNCTION BLOCK