Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino.

Slides:



Advertisements
Similar presentations
An Overview of the Computer System
Advertisements

 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
INTRODUCTION OF COMPUTER
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
An Overview of the Computer System
Computer Architecture. Central Processing Unit (CPU)- micro processor The Personal Computer.
Monks use computers to preserve their books. The information can be stored on CDs and uploaded to the Internet so that the whole world can learn from.
1 CIS 101 – Introduction to IT Dr. Basel Mahafzah.
Computer Parts There are many parts that work together to make a computer work.
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.
Information Technology Ms. Abeer Helwa. Computer Generations First Generation (Vacuum Tubes) -They relied on the machine language to perform operations.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
BLOCK DIAGRAM OF COMPUTER
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Faculty: Anita Kanavalli Department of CSE M S Ramaiah Institute of Technology Bangalore E mail-
Flash Cards Computer Technology.
Chapter 3 Computer Hard ware
Tom Allen Computer Science Department Trinity University.
Chapter 2 IT Foundation Data: facts about objects Store data in computer: – binary data – bits – bytes Five types of data.
Topics Introduction Hardware and Software How Computers Store Data
INTRODUCTION TO COMPUTING
Fundamental Principles of Computer Systems Unit B, Objective 3.01 & 3.02.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
Computer Parts. Two Basic Parts Hardware & Software.
COMP1050 Winter 2015 Computer System Maintenance.
CPS120: Introduction to Computer Science Introduction to Computers.
An overview of Computer System
Introduction to Computer Systems and the Java Programming Language.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
BAT3O / BTX4C. Definition: A computer is an electronic machine that 1) takes in data and instructions (input) 2) works with the data (processing) 3) puts.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Computer Architecture
Computer Basic Vocabulary
Calculators are used to increase speed and accuracy of numerical computations The abacus has roots dating back over 5,000 years Mechanical calculators.
Development of Computers. Hardware 1. Original concept: Charles Babbage 1840’s 2. 4 basic components of a computer system: input store mill output (Now:
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Parts of the Computer System
Components of a Computer System
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 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.
DAILY QUESTION April 29, What is the difference between ROM and RAM? Hint: Use your book!
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
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.
Computer PARTS. What is hardware? The hardware are the parts of the computer itself including the Central Processing Unit (CPU), keyboards, monitors,
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
ASSEMBLY LANGUAGE PROGRAMMING. Course Objectives Identify the major component of a PC-based system, describe the steps involving in assembling, linking,
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
Computer Architecture and Number Systems
BASIC PROGRAMMING C SCP1103 (02)
Computer Science II Chapter 1.
An Overview of the Computer System
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
An Introduction to The computer.
The Central Processing Unit
An Introduction to The computer.
Looking Inside the machine (Types of hardware, CPU, Memory)
Introduction to Computing Lecture # 1
An Overview of the Computer System
An Overview of the Computer System
Topics Introduction Hardware and Software How Computers Store Data
Computer components.
Presentation transcript:

Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino

MSMIS Kean University Topics Course requirements and introductions What is a computer? Hardware and Software Numbering systems and data Bits, bytes, and words

Scott Marino MSMIS Kean University Course Requirements Catalog description –Objective –Pre-requisites –Course Outline –Homework –Description –Texts –Attendance Contact Information or Student contact card –Name – –Phone number –Major –Goal for course –Programming experience

Scott Marino MSMIS Kean University What is a computer? Definition: A computer is a machine that, given instructions, can manipulate data by itself The first computers were introduced in the 1940’s – Atanasoff-Berry machine – Z3 program controlled calculator – ENIAC 19,000 Vacuum tubes Weighed 30 tons Filled an entire room

Scott Marino MSMIS Kean University What is a computer? Generations –First generation Used vacuum tubes 1940’s to late 1950’s –Second Generation Used transistors Late 1950’s to mid 1960’s –Third Generation Used integrated circuits Mid 1960’s to early 1970’s –Fourth Generation Uses high density integrated circuits Mid 1970’s to today –Fifth Generation ???

Scott Marino MSMIS Kean University What is a computer? A computer is a system consisting of hardware and software that are interconnected and must work together Hardware consists of the actual pieces of equipment –Circuit boards, monitors, keyboards, mice, sound cards, modems, cables, printers, etc.

Scott Marino MSMIS Kean University What is a computer? Software consists of the instructions to the hardware that direct it to perform tasks –Display an image, print a character, make a sound, move the cursor when the mouse moves, save a file, send an , load a web page etc.

Scott Marino MSMIS Kean University Computer Hardware CPU - Central Processing Unit –3 main functions Control - takes each instruction in a program, evaluates it, and directs some part of the computer to perform an action Arithmetic Operations - performs math calculations like addition, subtraction, division, and multiplication Logical Operations - performs comparison operations like equal to, greater than, less than, etc.

Scott Marino MSMIS Kean University Computer Hardware Main Memory –A temporary working area used to hold instructions and data –Consists of thousands, millions, or billions of locations –Each location is at an address, a unique identifier used by the CPU to refer to the location –Random access to each location is able to be performed because addressing –Main memory is volatile, it disappears when the power is turned off –Fast access

Scott Marino MSMIS Kean University Computer Hardware Secondary Storage –A more permanent storage area for data and instructions –Includes hard disks, floppy disks, magnetic tape, CD- ROM, etc –Typically stored in blocks or chunks of data –Allows for more storage area than main memory, but is slower to access Rotational delay and seek time

Scott Marino MSMIS Kean University Computer Hardware Input and Output Components –Input devices provide instructions or data to the CPU Input typically comes from a keyboard, mouse, optical scanner etc. –Output devices provide a place for the computer to produce a tangible result Output is typically routed to a monitor or a printer

Scott Marino MSMIS Kean University Computer Software Software is the instructions that make the hardware perform actions Application software –Written to perform tasks for individual users Games, word processors, spread sheets, internet browsers, e- mail, etc –Most common type of software written

Scott Marino MSMIS Kean University Computer Software System software –Controls the hardware and operates the computer –Directs physical input and output allowing for the transfer of signals between the CPU and other devices An O/S (operating system) is the set of system software that operates the computer –MS-DOS, Macintosh, Windows, Unix, MVS –O/S’s are usually specific to the hardware architecture

Scott Marino MSMIS Kean University Numbering Systems and Data Humans use the decimal numbering system –Developed because we had 10 fingers –Consists of 10 digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 Computers operate on a binary system at their lowest level –The tube, transistor, and integrated circuit can be in two possible states, on or off –A binary numbering system consists of zeros and ones, referred to as bits (binary digits) A decimal value of 9 is expressed as 1001

Scott Marino MSMIS Kean University Numbering Systems and Data The hexadecimal numbering system is based upon a number set with 16 values –Consists of 16 digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F The hexadecimal system is prevalent in most computer systems today Hexadecimal numbering works well with computers as 4 bits can contain 16 possible combinations

Scott Marino MSMIS Kean University Numbering Systems and Data A typical byte consists of 8 bits The ASCII character set is commonly used in PC’s, micro, mini, and midrange computer systems –American Standard Code for Information Interchange The EBCDIC is used primarily on IBM mainframes –Extended Binary Coded Decimal Interchange Code

Scott Marino MSMIS Kean University Numbering Systems and Data ASCII Codes –Utilizes 7 bits of storage (the leftmost position/bit remains unused) –Allows for 128 possible characters 2 raised to the 7th power –Not enough combinations for international character sets which causes some problems –Keep in mind that in ASCII, the numeric value displayed is a display value, not necessarily the number itself

Scott Marino MSMIS Kean University Numbering Systems and Data EBCDIC Codes –Utilizes all 8 bits in the byte –Allows for 256 possible characters 2 raised to the 8th power –Like ASCII, there are not enough characters to satisfy all the international character sets Translation programs exist that allow for the conversion between EBCDIC and ASCII

Scott Marino MSMIS Kean University Numbering Systems and Data ASCII and EBCDIC characters are typically stored as 8 binary digits known as a byte The assignment of characters to their binary representations is in a particular sequence –Notably - Numbers, uppercase letters then lowercase letters When sorting or comparing values, the computer is operating on the binary values The letter “A” is mathematically lower than the letter “a”

Scott Marino MSMIS Kean University Bits, Bytes, and Words Defined Bit - binary digit expressed as a zero or a one Byte - most commonly a collection of 8 bits –The smallest unit that any computer operates upon Word - a collection of bytes –Different sizes for different machines –Usually the number of bits that a computer can process simultaneously –16, 32, 64, 128 etc. are common word sizes Windows 3.1 was a 16 bit O/S, Windows 2000 is a 32 bit O/S