Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.

Slides:



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

ENGR2216 FORTRAN PROGRAMMING FOR ENGINEERS. Chapter 1 The computer CPU MEMORY INPUT/OUTPUT DEVICES DATA REPRESENTATION BINARY SYSTEM OCTAL & HEXADECIMAL.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
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.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Topic 1: Introduction to Computers and Programming
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
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.
COMP Computer Basics Yi Hong May 13, 2015.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
By: Dwayne Burl.  The Central Processing Unit (CPU) is responsible for interpreting and executing most of the commands from the computer's hardware and.
Chapter 1 An Overview of Computers and Programming Languages.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
BACS 287 Basics of Programming BACS 287.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
Topics Introduction Hardware and Software How Computers Store Data
INTRODUCTION TO COMPUTING
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
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.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Chapter 1 – Computing Fundamentals. History of Electronic Computers u First computer –ABC (Atanasoff Berry Computer) at Iowa State U. –1930’s –Solved.
Chapter 1 Computer Systems. Why study Computer Architecture? Examples Web Browsing - how does the browser access pages from a server? How can we create.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
CS 1428 Foundations of Computer Science I. Two Main Components  Hardware  Physical media that uses electrical current to process instructions.  Software.
Chapter 1 Getting Acquainted With Computers, Programs, and C++
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,
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Chapter 1 An Overview of Computers and Programming Languages.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
Computer Architecture and Number Systems
The Study of Computer Science Chapter 0
Chapter 1 Introduction to Computers, Programs, and C++
Java Programming: From the Ground Up
Computer Science II Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages
Introduction to Programming Part 2
Topics Introduction Hardware and Software How Computers Store Data
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
The Study of Computer Science Chapter 0
Introduction to Computers
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
CS190/295 Programming in Python for Life Sciences: Lecture 1
The Study of Computer Science
Computer Science I CSC 135.
Computers: Hardware and Software
Topics Introduction Hardware and Software How Computers Store Data
National Diploma in Computer Studies
Introduction to Programming Part 2
15-110: Principles of Computing
The Study of Computer Science Chapter 0
Presentation transcript:

Computer Hardware and Software Chapter 1

Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting Computer Programs Executing Java programs Application Software vs. Operating System Software Different Generations of Programming Languages Brief History of Computer Games

History of Computers Computers are electronic devices that can perform calculations. The first electronic digital computer was built by physics professor John Atanasoff and his graduate student Clifford Berry in The computer could not be programmed and could be used only to solve linear equations. Picture of John Atanasoff

History of Computer (cont’d) Six year later, in 1943, the first programmable electronic computer was built by Tommy Flowers.

History of Computers (cont’d) The first computers took a lot of space. Different components, such as secondary storage and main memory were in separate racks. Early computers could easily fill a present-day classroom. The term bug, which is commonly used to describe a software error, derives from the days when actual rodents were roaming around the different components of a computer. As time progressed, computers became smaller and cheaper. The personal computer was introduced in the late 1970s and early 1980s by the likes of Hewlett Packard, Apple, and IBM.

Hardware of a Computer

Hardware of Computer (cont’d) CPU Main Memory Hard DiscKeyboardMonitor

Central Processing Unit (CPU) It is the brain of a computer. It is a device that can perform simple calculations. These includes addition, deletion, subtraction, and multiplication. The speed of a CPU is measured in herz, which is a measure of frequency in cycles per second. In one cycle, the CPU can perform one instruction. Typical CPU speeds of modern computers are around 2GHz, which corresponds to 2 gigahertz, or 2 billion instructions per second.

Main Memory The CPU communicates with the main memory. The program that is executed and data that is used must be stored here. Main memory is typically RAM (random access memory). It takes the same time to read or write every cell of the data. Volatile (deleted when power goes off).

Main Memory (cont’d) The main memory of a computer consists of a sequence of cells, where every cell can take one of two states: 0 or 1. The different values are usually represented by different voltage. For example, 0.8 volts or below may denote 0, while 2.2 volts or above can denote the number 1. In computer science, this single cell is referred to as a bit.

Binary Numbers Base 10: 342 = 3* * *10 0 Base 2: 1010 = 1*2 3 +0*2 2 +1*2 1 +0*2 0 Decimal to Binary: 134 to binary Binary Number is: (the result backwards).

Hexadecimal Numbers

Binary to Hexadecimal = 12 2 = C2 16 Given 8 bits, split in two half-bytes. Convert each half-byte to hexadecimal using table. Decimal to Hexadecimal: Convert to Binary and then to hexadecimal. Hexadecimal to decimal: FC03 = F*16 3 +C* * *16 0 = 15* * * *16 0 =64515

The Process of Program Creation Software is written using text files that are saved on the hard disk (called a program). An Integrated Development Environment (IDE) can be used to create the files. If a compiler is used, then the code is translated into executable binary code that is loaded in the main memory. The CPU executes the binary code from the main memory. If an interpreter is used, then the translation to binary code and the execution of the code happens at the same time. Since the program needs to be translated to binary code during program execution, an interpreter is slower than a compiler.

What About Java? Java uses both an interpreter and a compiler. A compiler translates a.java text file into a.class binary file. The.class contains Java binary code. The Java binary code can be later executed using an interpreter (called Java Virtual Machine (JVM)). Since an interpreter is used, executing Java code can be slow. The advantage is that Java binary code can run under different operating systems as long as the JVM software is installed.

Type of Software Application Software – Games, office software, web browsers, etc. Operating System Software – Supports Graphical User Interface (GUI). – Allows access to I/O devices: e.g. keyboard, hard disc, monitor, mouse, etc. – Allows concurrent program execution.

Types of Programming Languages 1 st generation: Machine Language (use 0 and 1s or hexadecimal code). 2 nd generation: Assembly language (use memory locations and registers (CPU memory)). Example, add a b c. 3 rd generation: Higher level language with variables. Does not translate directly into machine code. Examples: C, C++, Java. 4 th generation: Descriptive languages. Tell the computer what you want, but not how to get it. Example: SQL.

Brief History of Computer Games Tennis for Two Knob for trajectory and a button for hitting the ball. Part of Brookhaven National Laboratory. Developed in 1969.

Cathode Ray Tube Spacewar! Year: 1971 coin-operated 1,500 games manufactured

First Mass Video Game Pong ,000 machines sold (similar to game console).

Color Games Space Invaders 1978 Produced by Atari

1979 Asteroids Produced by Atari

1980 Pac-Man

Conclusion Computers understand only binary code (0s and 1s). Computers can execute only simple operations: read/write memory, arithmetic operations, interact with I/O devices (through the main memory of the I/O devices). A computer program is written using text. Then a compiler or an interpreter is used to create the binary code that computers can understand. Permanent data is saved on the hard disk. It needs to be moved to the main memory before it can be accessed by the CPU. The size of the main memory is much smaller than the size of hard disk. However, reading from / (writing to) main memory is much faster.