Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Introduction to Computer Systems
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
1-1 ICS102: Introduction To Computing I King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
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.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Chapter 1 Introduction to Programming. Computer Hardware CPU Memory –Main or primary –Secondary or auxiliary Input device(s) Output device(s)
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
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.
BACS 287 Basics of Programming BACS 287.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
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.
CISC105 General Computer Science Class 1 – 6/5/2006.
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.
Computer system overview1 The Effects of Computers Pervasive in all professions How have computers affected my life? How have computers affected my life?
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 15, 2004 Lecture Number: 10.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
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)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode 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.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Microsoft Imagine All KU students currently enrolled in a CS class are eligible to receive Microsoft software, including Operating Systems development.
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Programming
Chapter 1. Introduction to Computers and Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
The Basic Organization of Computers T.Jeya M.Sc., M.Phil Assistant Professor, Department of CS, SAC Women’s College. Cumbum. Tamilnadu.
Chapter 1: Introduction to Computers and Programming
COMS 161 Introduction to Computing
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine specifically designed to follow instructions What is a computer?

Computer Systems: Hardware and Software Hardware – physical components a computer is made of –System of devices –Major components »CPU »RAM »Secondary storage »Input devices »Output devices

Main functions: control, arithmetic operations, logical operations Arithmetic Logic Unit (ALU) Control unit manages the instruction-execution cycle (coordinates the activities of other devices) FETCH – DECODE – EXECUTE Central Processing Unit

(fast access) storage device for preserving binary data and instructions memory is divided into units or words each is usually a standard size or fixed- length each memory word has a unique address for random access Main Memory

Random Access Memory (RAM) –readable –writable –usually volatile (e.g., Dynamic RAM or DRAM) –general storage Read Only Memory (ROM) –readable –permanent –nonvolatile –special-purpose storage for data and instructions Main Memory

Input/Output –exchanging data and instructions between the user and the computer Secondary Storage –auxiliary storage for data and instructions I/O Subsystem

backup or alternative storage in place of (volatile) RAM cheaper, mass storage for long term use secondary memory devices (and media) are distinguished by their capacities, speed, and cost Secondary Storage

A program is a list of instructions that direct the computer’s process in order to perform a task the computer system executes binary-encoded machine language programs designed for that type of processor Programs are developed and written using symbolic programming languages which are easier to comprehend and use. What is a program?

What is programming? Art and a science –Every program is carefully designed –Also a scientific or engineering side » rarely work right first time » require experimentation, correction and redesigning »Demands discipline

Programming Language Generations 1 st – Machine Language (binary) 2 nd – Assembly language (symbolic/ 1 to 1) 3 rd – High level Language (English-like/1 to many) –Examples: Cobol, Pascal, Basic, C/C++, Ada, …. 4 th - Automatic Code Generation

High-Level Programming Languages are more abstract are more concise are portable to other processors must be translated to the machine language of the host processor interpreters--translate and execute one instruction at a time compilers--translate the entire program to executable form

Source to Execution: Figure 1-5 C++ programs are typed into the computer and saved to file  source code Process of translation –Preprocessing (looking for # symbols) –Compiling  object code –Linking  executable code –Executing IDE – integrated development environments

Algorithms Problem: Compute amount earned on an investment Algorithm: –Get data –Compute amount –Output amount -Get data Get principal Get APR Get number years -Compute amount Compute interest rate Compute days Compute amount -Output amount

Algorithms Algorithms may be expressed using a variety of methods and techniques A flowchart pseudocode

Language Elements Keywords Programmer-defined symbols (identifiers) Operators Punctuation Syntax Lines and Statements Variables (Memory locations)

A Sample Program

Input, Processing, Output Three primary activities of a program Input –cin >> hours; Process –pay = hours * rate; Output –cout << “You earned $ “ << pay;