Computers: Hardware and Software

Slides:



Advertisements
Similar presentations
Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
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.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
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.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
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.
Computer Parts There are many parts that work together to make a computer work.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
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.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Topics Introduction Hardware and Software How Computers Store Data
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
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.
By Justin Cryer. Motherboard (ROM) In personal computers, a motherboard is the central printed circuit board and holds many of the crucial components.
Chapter 1 Overview of Computers and Programming J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Computer Architecture
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
1 THE COMPUTER. 2 Input Processing Output Storage 4 basic functions.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Click once to reveal the definition. Think of the answer. Then click to see if you were correct. HARDWARE Physical parts of the computer.
Computer Parts There are many parts that work together to make a computer work.
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,
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
BMTS 242: Computer and Systems Lecture 2: Memory, and Software Yousef Alharbi Website
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
Computer Parts There are many parts that work together to make a computer work.
Computer Basics.
Chapter 1: An Overview of Computers and Programming Languages
Topics Introduction Hardware and Software How Computers Store Data
The CPU is the brain of the computer
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Course: Introduction to Computers
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Microcomputer Architecture
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
IB Computer Science Topic 2.1.1
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Computer Science I CSC 135.
Computer Hardware Prepared by:- Mr. Pawan Kumar
Topics Introduction Hardware and Software How Computers Store Data
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
CS IA: Procedural Programming CS IB: Object-Oriented Programming
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer components.
Presentation transcript:

Computers: Hardware and Software CS 10061 Introduction to Computer Programming Computers: Hardware and Software

Basic Computer Components

Mother Board A motherboard is the central printed circuit board (PCB) in many modern computers and holds many of the crucial components of the system, while providing connectors for other peripherals.

Computer Memory System bus CPU What Does CPU do? Stores numbers in special (very fast) memory locations called registers. Adds, subtracts, multiplies and divides numbers in registers. Stores results in registers. Gets numbers from specific RAM locations via the bus. Some numbers are data, some are instructions. Each data item or instruction has a location in RAM where it is stored, ie a memory address Tests value (positive, negative, zero) of register and change instruction number (memory address of next instruction) based on result. Writes numbers to bus.

Computer Memory Computer Memory Microprocessor – an entire CPU on a single chip Register - high-speed memory location inside the CPU. RAM (Random Access Memory) - integrated circuit representing a collection of numbered cells for storage of instructions and data, cells can be accessed in any order. ROM - read only memory Bus - Moves numbers from one device to another. Devices are described by numbers (bus addresses). Each device signals bus to send some amount of data (numbers) to another device. Bus signals other device to read incoming data. RAM and Disk Drives - Receive memory address and data and store data in specified address or send data from a specified address. Video Card and Sound Card - Receive data and instructions from bus and control video or sound device based on instructions received. Writes data to bus in response to instructions received. System Drive Video Card Sound Card CD Rom Drive

Computer Memory More Computer Memory All data represented digitally- binary numbers made up of the digit 0 and 1. Bit – one binary digit Byte – amount of memory needed to represent one character (8 bits) Word – amount of memory that computer views as a single unit of information.

Secondary storage Input/Output devices Memory Stick File is named collection of data stored on a disk Input/Output devices Plotter GUI is graphical user interface

CPU – Memory interaction Computer Program is a list of instructions that direct the work of a computer. Consider an instruction:

Computer networks 1. LAN 2. WAN 3. WWW

That Does Not Seem to Compute How these piece go together to do what we know a computer can do (play music, do spread sheets, play videos, etc) is not easy to see. Understanding what a computer program (the instructions the CPU receives) does is the first step toward understanding how to make a computer do fancy things. Hardware – physical components of a computer system Software – computer programs

Computer Software(program) Components Operating System: Software that controls the interaction of the user, software applications, and the hardware. Examples: Microsoft WindowsXP, Microsoft Vista, Linux, SunOS, UNIX. etc. When the computer starts it gets its instructions from a section of memory called the boot ROM (Read Only Memory). The initial program stored in the boot ROM reads into memory another program from the disk called the boot loader. After the boot loader is in memory, the startup boot program instructs the CPU to get its next instruction at the start of the memory it just loaded. The boot loader then loads the next part of the operating system and then cause the CPU to execute the newly loaded instructions. This boot strapping procedure is repeated until the full operating system is loaded and executing. The process is known as booting the computer.

Computer Software Components Drivers: programs that the operating system uses to control the hardware. Drivers are hardware specific. When you install a new hardware component, it often requires a driver written specifically for it. Applications programs: By clicking on an icon or by typing in a command the user selects a program, the operating system loads the program into memory and instructs the CPU to execute its next instruction at the start of the newly loaded instructions. Install: make an application available on a computer by copying it from CD to the computer’s hard drive.

Computer Instructions Machine language: binary number codes understood by a specific CPU Assembly Language: mnemonic codes that correspond to machine language instructions A program to add the value of the contents of register A to the contents of register B and store the results in register A In computer memory this might look like

Computer Languages Originally, programmers (in the before 1950's) wrote programs using the binary code for the instructions, i.e., the 0's and 1's—Machine language programming As that was exceedingly difficult to get correct, programmers soon switched to writing in the mnemonics and having the computer fill in the binary numbers—Assembly language programming. But assembly language was still hard to program in and was different for each type of computer. It is easier to think of the operations mathematically, say as b=b+a. This lead to the development of high level languages that express the operation one needs to perform on the numbers, rather than the machine instructions to do it.

Computer Languages The first high level language Fortran became available in 1957. Other well-known high level languages are COBOL, C, C++, and Java. C/C++ code: a=4; b=3.1; b=a+b; printf(“b=%f\n”,b);

Computer Languages

Compilers A high level language needs another program, called a compiler, to translate the operations it describes into machine code (i.e., binary numbers that are machine instructions). Actually, modern compilers first perform an intermediate translation of program source file into what is know as a program object file (syntactically correct program). Syntax: grammar rules of a programming language

Linker Object files usually contain reference to other programs that must be combined together before a working program is produced. A program called a linker resolves cross references between object files creating a complete program. Often the compiler invokes the linker when it is done translating the source file.

Object Oriented Languages Object oriented languages allow a programmer to group variables and computer code together to define a conceptual object such as a window on a computer screen. Once created an object can easily be specialized to an individual programmers needs. This feature makes it easier to develop programs. C++ is an Object Oriented Language.