An Introduc+on to Computers and Java CSC 121 Spring 2017 Howard Rosenthal

Size: px
Start display at page:

Download "An Introduc+on to Computers and Java CSC 121 Spring 2017 Howard Rosenthal"

Transcription

1 An Introduc+on to Computers and Java CSC 121 Spring 2017 Howard Rosenthal

2 Lesson Goals Learn the basic terminology of a computer system Understand the basics of high level languages, including Java Understand algorithms Understand how numbers are represented in a computer Binary Arithmetic Two s Complement Understand how Unicode works and represents characters in a computer 2

3 What Is A Computer? Basic Definitions A computer is a machine that performs computations, logical operations, data manipulation, etc. according to some sequence of instructions called a program. Today pretty much all computers are electronic. Hardware and software working in tandem comprise a computer system. Can you name some examples of computers? 3

4 The Rapid Evolu8on of Computers Essentially the computer industry, much like television, took off after WWII transistors and integrated circuits still didn t exist in 1945 Into the 1970s most computing involved having a textual workstation connected to a close by computer once you got past the age of punch cards In the 1980 s Ken Olsen, the head of an extremely successful computer company Digital stated that he saw no need for anyone to have a computer in their home At the start of 1990 s PCs stood alone no networking to the home During the 1990 s Seinfeld episodes featured George waiting for a phone booth. In the late 1990s Best Buy still had a large CD section! Google only started in 1995! Today we are completely integrated into a computerized, networked world. We do our research, make purchases, talk on the phone, text incessantly. All because of computers. See the timelines and history of computer in the reference files Bottom line This is a great field to be in a good job and excellent pay awaits those who succeed 4

5 The Basic Components of A Computer (1) The four basic elements of a computer are: The Central Processing Unit The CPU Primary or Random Access Memory (RAM) Secondary or long term memory Note: some of these devices are becoming closer to RAM devices as they are built with solid state circuitry as opposed to spinning electro mechanical parts Input and output devices disks printers, etc. 5

6 The Basic Components of A Computer (2) 6

7 The Basic Components of A Computer (3) (ALU) (PLU) 7

8 The CPU The CPU The CPU Program Control Unit (PCU) The PCU takes the instructions, interprets them, and decides how to handle them. It determines what all the other parts of the CPU do. It is basically the Coordinator for everything that happens in the CPU. It contains the instruction Registers, and program counter Arithmetic Logic Unit (ALU) - This is where all the calculations are actually performed. The Arithmetic part is where all the operations like ADD, SUBTRACT, MULTIPLY, and DIVIDE take place. The Logic part is where numbers are compared through functions such as Equalto, Less-Than, greater-than, Not equal to. The CPU's General purpose Registers and Accumulator are also found here. The Clock synchronizes all the activities in the CPU, and allows instructions to be staged and pipelined through the CPU 8

9 The Memory Memory Unit - The parts that make up the Memory Unit are the read only memory (ROM) and random access memory (RAM). ROM is a special type of memory in which data is written onto a chip during manufacturing. Information stored to ROM is permanent and cannot be changed. The System ROM stores the BIOS - Basic Input/Output System, which is the set of instructions that a computer uses during the first stages of power up and initialization. Without the BIOS, the computer would not have a way to verify that the main hardware components, such as the hard drive, floppy drive, mouse, CD-ROM etc., are installed and working properly. The BIOS also includes Bootstrapping, allowing the BIOS to look for and start the loading of the operating system from the selected location. RAM, often referred to as main memory, or Primary Memory or Read-Write Memory, is a temporary form of memory that the computer uses as a work area. This type of memory is dynamic, meaning that it is constantly changing because of the activity of the CPU. When you shut off the power to the computer, RAM loses everything stored in it the memory is volatile. RAM stores program instructions and related data for the CPU to access quickly without the need for extracting the data from a much slower form of types of permanent storage, such as the Hard Disk. Generally, the closer the memory is to the CPU's ALU and CU, the faster the memory will be. As a result, it will be the most expensive, and the most limited type of memory in terms of availability and size 9

10 Input and Output Input - Basically where information is passed to the CPU. This is from devices like the keyboard, mouse, etc. Can also include scanners, readers, thumb drives, external sources Output - Basically where information is presented from the CPU. This is to devices like your Monitor, Printers, etc. Permanent Secondary Storage - Where the information is kept and stored persistently. Data doesn t disappear when the power is shut off. While RAM has typically been both the fastest and most expensive the gap between RAM and secondary storage is shrinking as technology advances Solid state disk (SSD) storage is becoming cheaper and more popular With fewer moving parts it is typically more reliable than spinning electromechanical disks Apple offers Fusion drives that combine the two technologies at a lower cost that a pure SSD 10

11 Addressing Data In A Computer Data is stored by memory addresses 64 bit machines an have 2 64 bytes of memory We often deal with the addresses, known as references, rather than with the data itself this will be a key idea as we move forward with Java and objectoriented programming The memory contents are always some sort of binary representation What the representation means depends on the type of data being represented Memory Address Memory Contents (9) (17) (127) (36)

12 How is Data Stored In A Computer Computers today store information in binary format with 0 s and 1 s that correspond to off and on this is currently the easiest way to build a digital computer. Each binary digit is called a bit. A string of 8 bits is typically called a byte. Bytes are typically organized into 32 bit words. Data types can be or 8 bytes long, depending on the type (Further explained in Chapter 2) The byte is the lowest addressable unit of information in a computer. Similar to the idea that we address to homes or apartments, but not to rooms within a home or apartment 12

13 Basic Concepts In Computer SoJware Operating System Software that controls all aspects of the computer DOS, Windows, MAC OS, UNIX, etc. Languages and levels of abstraction Machine Language expressed in 0 s and 1 s. This is what the machine understands. A long time ago programmers coded in 0 s and 1 s. It was very hard to write complex programs. Assembly Language A low-level programming language in which a mnemonic is used to represent each of the machine language instructions for a particular computer Assembly Language Machine Language ADD SUB Assembler The program that translates Assembly Language into Machine Language Higher Level Languages Used to write programs in a more understandable form. Examples include Fortran, C, C++, LISP, Java Layered Architectures An approach that allows application programmers to take advantage of software written by others i.e. IO drivers, databases, user interfaces, etc. in order to make the life of the application writer easier 13

14 A Layered Computer Architecture 14

15 Basic Concepts In Computer SoJware Object Oriented Programming Original higher level languages were procedural Good for solving math problems Little relationship between the data and the operations Tended to do poorly with higher levels of abstraction Object Oriented Programming Organizes data and operations/processes together into an object. At the higher level of abstraction we have the Class which is a description of an object that specifies the types of data values that it can hold and the operations that it can perform A class is a higher form of a data type It encapsulates data and methods together Classes are instantiated into individual objects More about this starting in Chapter 3. 15

16 Basic Concepts In Computer SoJware Compilers and Interpreters Compilers Compilers translate source code written in a programming language into machine language. Each language has it s own compiler(s) or interpreters Compilers are not machine independent. Therefore the source code often needed to be tailored based on the capabilities of the targeted machines. And the output of the compiler was also machine specific Java has created an approach that completely separates the source code from the target machine, so the source code can be compiled independently of the machine Source code - Data type specifications and instructions written in a high-level programming language Object code - A machine language version of source code In addition to compilers some computer languages use interpreters Languages are still at a higher level Execute directly line by line from the source code Since interpretation is in real-time some static checking and reliability may be lost Slower than directly executing compiled code Python, Smalltalk, Lisp, some forms of Basic, some scripting languages, etc. 16

17 Original Compiler Concept Originally separate compilers were written for each machine These compilers produced machine language or assembly language code for the individual machines Assembly language code would go through a second compilation step to produce machine language code SOURCE CODE (C++) COMPUTER EXECUTES TRANSLATOR CODE (COMPILER) OBJECT CODE (MACHINE LANGUAGE VERSION OF SOURCE CODE) COMPUTER EXECUTES OBJECT CODE Windows PC C++ compiler Windows PC machine language Windows PC computer C++ Code UNIX workstation C++ compiler UNIX workstation machine language UNIX workstation computer Macintosh C++ compiler Macintosh machine language Macintosh computer Figure 1.5 High-level programming languages allow programs to be compiled on different systems 17

18 Java Is Machine Independent JAVA solves the problems of machine dependence. JAVA standardizes the language and the compiler, which creates bytecode a form of binary representation. The bytecode is then presented to a Java Virtual Machine (JVM) which interprets bytecode exactly the same way regardless of the machine. This is called Machine Independence. The bytecode can be thought of as the machine language of the JVM The JVM is a virtual machine in software. It has its own machine language. All Java code is compiled for the JVM However, bytecode must be interpreted in order to create machine language instructions that are executed by the physical machine Oracle typically provides the JVMs for the individual machines Source Code (.java) Java Compiler Bytecode (.class) Java Virtual Machine Machine Language Target Machine JVM takes the compiled bytecode and interprets it into the machine code 18

19 Syntax and Seman+cs Languages have a syntax its grammatical structure - and its semantics - which give it meaning Syntax is the study of the principles and rules for constructing sentences in natural languages. Word order, parts of speech, types of sentences, etc. are studied in syntax. Semantics is the study of meaning. It focuses on the relation between signifiers, such as words, phrases, signs and symbols, and what they stand for Elements like ambiguity, the relationship between words and sentences based on meaning are studied in language Can you write programs that are syntactically correct and yet work incorrectly? Examples I am a boy. grammatically correct and means something I boy. syntactically incorrect but does convey meaning I am a building. Syntactically correct but is meaningless. Syntax varies by language. We need to learn the syntax of the computer language since the computer is not all that adaptable (unless we write programs to teach them that adaptability). Most object-oriented languages follow a similar set of principles in implementing the programming language, but there are differences in syntax and even philosophy 19

20 Algorithms An algorithm is a step by step procedure for accomplishing a task or solving a problem describing The actions to be performed The order in which those actions are performed All computer programs require the use of algorithms A simple algorithm find the greatest of three numbers A complex algorithm find the shortest route between two points on a map Most programs: Read in data (input) Process the data with algorithms Generate outputs Programs that do not have any inputs are likely to generate the same answers over and over (there are exceptions when using random number generators) In this class you will be writing algorithms in the syntax of Java To get the correct answers you must implement the algorithms in a semantically meaningful way that accomplishes the goal of the algorithm 20

21 What Is The Binary System? In the normal decimal system each place indicates a different power of ten. For example: 13,472 = 1x x x x x10 0 Similarly in base 2 arithmetic each place has a value associated with it: One s place = 2 0 Two s place = 2 1 Fours place = 2 2 Eights place = 2 3 Sixteen s place = 2 4 So let s try a few examples with eight bits: 1 = = 1x2 o 3 = = 1x x2 0 4 = = 1x2 2 Now try a few on your own write 9 and 14 in binary format 21

22 Conver+ng From Decimal To Binary Successive division is used to convert from decimal to binary Example - convert 14 to binary 14/2 = 7 r0 7/2 = 3 r1 3/2 = 1 r1 ½ = 0 r = 14 Try using this algorithm to find the binary value for 47 22

23 Adding and Subtrac+ng in Binary It s the same as normal adding and subtracting in the decimal system but you only use o s and 1 s = = = = = = 87 23

24 Expressing Nega+ve Numbers Java uses a method called two s complement to express negative numbers. If the leftmost bit is a one it means that you are looking a negative number We don t use the left most bit to simply indicate a negative then we d have two representations of 0 There is a three step algorithm to create a negative binary representation Step 1 write the decimal number as a positive binary number Step 2 toggle all the digits Step 3 add 1 So lets look at the 8 bit representation of -95 Step 1: 95 = Step 2: Toggle: Step 3: Add 1: Note the 1 in the leftmost bit Another approach the two s complement of a number x is 2 n -x In the example above = 33 which is what the right most 7 bits equals Some explanations use n= 8 and show that = 161. That is the value of all 8 digits Question How large an integer do you think you can store in 8 bit integer if negatives are represented with a two s complement or = 127 The smallest is Why? See the two s complement tutorial under Reference Material - Twos Complement Tutorial.pdf 24

25 Using Two s Complement to Subtract by Adding With two s complement you can subtract by adding a negative number Let s subtract 95 from = = -95 (in two s complement) a two s complement negative toggle =35 (added one) So the two s complement value was -35, exactly what we wanted it to be. This approach allows you to simplify your architecture, since subtraction is done by adding a negative number. What is the two s complement of a two s complement If the original number is x The two s complement is 2 n -x It s two s complement is 2 n -(2 n -x) = x 25

26 Unicode Unicode is a way of representing individual characters It actually uses two bytes per character, unlike the ASCII system which uses the 7 left most bits of a single byte, although the whole byte is used ASCII representation with extra zeroes to the left are used in Unicode Basic Unicode allows us to represent many more characters 2 16 as opposed to 27 characters in ASCII This became necessary to support many more data sets, symbols, other languages Java use Unicode for character representations There is now a Supplementary 8 byte Unicode which further extends the number of characters, but we won t worry about this Pages A-3 and A-4 of the textbook shows the ASCII character set Unicode includes ASCII characters as a subset the first 128 characters are the same You can find the complete character set at Note: Do you understand the difference between Bytecode and Unicode? 26

27 Extra Class Problems Express 37 as a binary with 8 bits Add and Subtract 47 from 83 using 8 bit binary representations Express -43 as in 8-bit binary using two s-complement 27

An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal

An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Learn the basic terminology of a computer system Understand the basics of high level languages, including java Understand

More information

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming Topics C H A P T E R 1 Introduction to Computers and Programming Introduction Hardware and Software How Computers Store Data Using Python Introduction Computers can be programmed Designed to do any job

More information

C H A P T E R 1. Introduction to Computers and Programming

C H A P T E R 1. Introduction to Computers and Programming C H A P T E R 1 Introduction to Computers and Programming Topics Introduction Hardware and Software How Computers Store Data How a Program Works Using Python Computer Uses What do students use computers

More information

Computer Principles and Components 1

Computer Principles and Components 1 Computer Principles and Components 1 Course Map This module provides an overview of the hardware and software environment being used throughout the course. Introduction Computer Principles and Components

More information

IB Computer Science Topic.2-

IB Computer Science Topic.2- Topic.2- Computer Organization Designed by: Allan Lawson Sources: Online Materials, thanks for all Topic 2.1.1 Computer Architecture Outline the architecture of a central processing unit (CPU) and the

More information

Chapter 1: Introduction to Computers and Programming

Chapter 1: Introduction to Computers and Programming Chapter 1: Introduction to Computers and Programming 1.1 Why Program? Why Program? Computer programmable machine designed to follow instructions Program instructions in computer memory to make it do something

More information

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah The kinds of memory:- 1. RAM(Random Access Memory):- The main memory in the computer, it s the location where data and programs are stored (temporally). RAM is volatile means that the data is only there

More information

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming 1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to Computing and Programming with Java: A Multimedia

More information

CS 101, Mock Computer Architecture

CS 101, Mock Computer Architecture CS 101, Mock Computer Architecture Computer organization and architecture refers to the actual hardware used to construct the computer, and the way that the hardware operates both physically and logically

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Lecture 1 CGS 3416 Spring 2017 1/9/2017 Main Components of a computer CPU - Central Processing Unit: The brain of the computer ISA - Instruction Set Architecture: the specific

More information

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program? Chapter 1: Introduction to Computers and Programming 1.1 Why Program? Why Program? Computer programmable machine designed to follow instructions Program instructions in computer memory to make it do something

More information

An Overview of the Computer System. Kafui A. Prebbie 24

An Overview of the Computer System. Kafui A. Prebbie 24 An Overview of the Computer System Kafui A. Prebbie -kafui@kafui.com 24 The Parts of a Computer System What is a Computer? Hardware Software Data Users Kafui A. Prebbie -kafui@kafui.com 25 The Parts of

More information

The Programming Process Summer 2010 Margaret Reid-Miller

The Programming Process Summer 2010 Margaret Reid-Miller The Programming Process 15-110 Margaret Reid-Miller Hardware Components Central Processing Unit (CPU) Program control Arithmetic/logical operations Coordinates data movement between memory and registers

More information

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software. Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS Microprocessors I Outline of the Lecture Microcomputers and Microprocessors Evolution of Intel 80x86 Family Microprocessors Binary and Hexadecimal Number Systems MICROCOMPUTERS AND MICROPROCESSORS There

More information

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language The x86 Microprocessors Introduction 1.1 Assembly Language Numbering and Coding Systems Human beings use the decimal system (base 10) Decimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Computer systems use the

More information

Computer Fundamentals

Computer Fundamentals Computer Fundamentals 1 Draw the block diagram of computer architecture and explain each block. Computer is made up of mainly four components, 1) Central processing unit (CPU) 2) Input section 3) Output

More information

What is Java Platform?

What is Java Platform? What is Java Platform? Java is a programming language and a computing platform for application development. It was first released by Sun Microsystem in 1995 and later acquired by Oracle Corporation. A

More information

Computer Fundamentals

Computer Fundamentals Computer Fundamentals Computers have made great inroads in our everyday life and thinking. They are put to use for all sorts of application ranging from complex calculations in the field or frontline research,

More information

Elements of Computers and Programming Dr. William C. Bulko. What is a Computer?

Elements of Computers and Programming Dr. William C. Bulko. What is a Computer? Elements of Computers and Programming Dr. William C. Bulko What is a Computer? 2017 What is a Computer? A typical computer consists of: a CPU memory a hard disk a monitor and one or more communication

More information

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components Week 0: Intro to Computers and Programming Gaddis: Sections 1.1-3 and 2.1 CS 1428 Fall 2014 Jill Seaman 1.1 Why Program? Computer programmable machine designed to follow instructions Program instructions

More information

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound).

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound). ELECTRONIC COMPUTERS THEN AND NOW Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound). In the Past (i.e., during

More information

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU. HARDWARE hardware ˈhɑːdwɛː noun [ mass noun ] the machines, wiring, and other physical components of a computer or other electronic system. select a software package that suits your requirements and buy

More information

Programming 1 - Honors

Programming 1 - Honors Programming 1 - Honors Lecture 1 COP 3014 Spring 2017 January 10, 2017 Main Components of a computer CPU - Central Processing Unit: The brain of the computer. ISA - Instruction Set Architecture: the specific

More information

Segment 1A. Introduction to Microcomputer and Microprocessor

Segment 1A. Introduction to Microcomputer and Microprocessor Segment 1A Introduction to Microcomputer and Microprocessor 1.1 General Architecture of a Microcomputer System: The term microcomputer is generally synonymous with personal computer, or a computer that

More information

CHAPTER 1 Introduction to Computers and Java

CHAPTER 1 Introduction to Computers and Java CHAPTER 1 Introduction to Computers and Java Copyright 2016 Pearson Education, Inc., Hoboken NJ Chapter Topics Chapter 1 discusses the following main topics: Why Program? Computer Systems: Hardware and

More information

Programming 1. Lecture 1 COP 3014 Fall August 28, 2017

Programming 1. Lecture 1 COP 3014 Fall August 28, 2017 Programming 1 Lecture 1 COP 3014 Fall 2017 August 28, 2017 Main Components of a computer CPU - Central Processing Unit: The brain of the computer. ISA - Instruction Set Architecture: the specific set of

More information

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software. Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible

More information

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result. Central Processing Unit (CPU) A processor is also called the CPU, and it works hand in hand with other circuits known as main memory to carry out processing. The CPU is the "brain" of the computer; it

More information

Memory Addressing, Binary, and Hexadecimal Review

Memory Addressing, Binary, and Hexadecimal Review C++ By A EXAMPLE Memory Addressing, Binary, and Hexadecimal Review You do not have to understand the concepts in this appendix to become well-versed in C++. You can master C++, however, only if you spend

More information

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction Chapter 1: An Overview of Computers and Programming Languages Objectives Objectives (cont d.) In this chapter, you will: Learn about different types of computers Explore hardware and software Learn about

More information

PDF created with pdffactory Pro trial version How Computer Memory Works by Jeff Tyson. Introduction to How Computer Memory Works

PDF created with pdffactory Pro trial version   How Computer Memory Works by Jeff Tyson. Introduction to How Computer Memory Works Main > Computer > Hardware How Computer Memory Works by Jeff Tyson Introduction to How Computer Memory Works When you think about it, it's amazing how many different types of electronic memory you encounter

More information

CC411: Introduction To Microprocessors

CC411: Introduction To Microprocessors CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Use number { base 2, base 10, or base 16 }. Add and subtract binary/hex numbers. Represent any binary number in 2

More information

Lecture 01: Basic Structure of Computers

Lecture 01: Basic Structure of Computers CSCI2510 Computer Organization Lecture 01: Basic Structure of Computers Ming-Chang YANG mcyang@cse.cuhk.edu.hk Reading: Chap. 1.1~1.3 Outline Computer: Tools for the Information Age Basic Functional Units

More information

v.m.g.rajasekaran ramani sri sarada sakthi mat. Hr. sec. school

v.m.g.rajasekaran ramani sri sarada sakthi mat. Hr. sec. school v.m.g.rajasekaran ramani sri sarada sakthi mat. Hr. sec. school STD: XI COMPUTER SCIENCE L.1. Introduction to computers 2 marks 1. What is a computer? Computer: A computer is an electronic machine, capable

More information

Problem Solving and Program Design - Chapter 1. Cory L. Strope

Problem Solving and Program Design - Chapter 1. Cory L. Strope Problem Solving and Program Design - Chapter 1 Cory L. Strope Overview of Computers and Programming Computer Hardware Computer Software Software Development (Problem Solving) Pseudocode Flowchart Intro.

More information

COS 140: Foundations of Computer Science

COS 140: Foundations of Computer Science COS 140: Foundations of Computer Science CPU Organization and Assembly Language Fall 2018 CPU 3 Components of the CPU..................................................... 4 Registers................................................................

More information

Fundamentals of Programming (Python) Basic Concepts. Ali Taheri Sharif University of Technology Spring 2018

Fundamentals of Programming (Python) Basic Concepts. Ali Taheri Sharif University of Technology Spring 2018 Fundamentals of Programming (Python) Basic Concepts Ali Taheri Sharif University of Technology Outline 1. What is a Computer? 2. Computer System Organization 3. What is a Computer Program? 4. Programming

More information

What is the typical configuration of a computer sold today? 1-1

What is the typical configuration of a computer sold today? 1-1 What is the typical configuration of a computer sold today? 1-1 Computer Hardware Components In this chapter: How did the computer become known as the stored-program computer? Do they all have the same

More information

BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1

BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1 BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1 Learning Outcomes At the end of this lecture, you should be able to: tell the purpose of computer programs. describe

More information

User. Application program. Interfaces. Operating system. Hardware

User. Application program. Interfaces. Operating system. Hardware Operating Systems Introduction to Operating Systems and Computer Hardware Introduction and Overview The operating system is a set of system software routines that interface between an application program

More information

Digital Systems. John SUM Institute of Technology Management National Chung Hsing University Taichung, ROC. December 6, 2012

Digital Systems. John SUM Institute of Technology Management National Chung Hsing University Taichung, ROC. December 6, 2012 Digital Systems John SUM Institute of Technology Management National Chung Hsing University Taichung, ROC December 6, 2012 Contents 1 Logic Gates 3 1.1 Logic Gate............................. 3 1.2 Truth

More information

Chapter 1: Introduction to Computers and Java

Chapter 1: Introduction to Computers and Java Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:

More information

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:

More information

INTRODUCTION TO COMPUTERS

INTRODUCTION TO COMPUTERS INTRODUCTION TO COMPUTERS When we talk about computers, we really are talking about a Computer System. Computer System: It is a combination of Hardware and Software. This combination allows a computer

More information

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra Binary Representation Computer Systems Information is represented as a sequence of binary digits: Bits What the actual bits represent depends on the context: Seminar 3 Numerical value (integer, floating

More information

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

CREATED BY M BILAL & Arslan Ahmad Shaad Visit: CREATED BY M BILAL & Arslan Ahmad Shaad Visit: www.techo786.wordpress.com Q1: Define microprocessor? Short Questions Chapter No 01 Fundamental Concepts Microprocessor is a program-controlled and semiconductor

More information

Chapter 9: A Closer Look at System Hardware

Chapter 9: A Closer Look at System Hardware Chapter 9: A Closer Look at System Hardware CS10001 Computer Literacy Chapter 9: A Closer Look at System Hardware 1 Topics Discussed Digital Data and Switches Manual Electrical Digital Data Representation

More information

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Dec Hex Bin ORG ; ZERO. Introduction To Computing Dec Hex Bin 0 0 00000000 ORG ; ZERO Introduction To Computing OBJECTIVES this chapter enables the student to: Convert any number from base 2, base 10, or base 16 to any of the other two bases. Add and

More information

Chapter 9: A Closer Look at System Hardware 4

Chapter 9: A Closer Look at System Hardware 4 Chapter 9: A Closer Look at System Hardware CS10001 Computer Literacy Topics Discussed Digital Data and Switches Manual Electrical Digital Data Representation Decimal to Binary (Numbers) Characters and

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls POSIX System Programs System Structure Virtual Machines System Design and Implementation System Generation

More information

Chapter 1 Introduction to Computers and Programming

Chapter 1 Introduction to Computers and Programming Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming Copyright 2003 Scott/Jones Publishing Contents 1.1 Why Program? 1.2 Computer Systems: Hardware

More information

THE MICROCOMPUTER SYSTEM CHAPTER - 2

THE MICROCOMPUTER SYSTEM CHAPTER - 2 THE MICROCOMPUTER SYSTEM CHAPTER - 2 20 2.1 GENERAL ASPECTS The first computer was developed using vacuum tubes. The computers thus developed were clumsy and dissipating more power. After the invention

More information

(Refer Slide Time 00:01:09)

(Refer Slide Time 00:01:09) Computer Organization Part I Prof. S. Raman Department of Computer Science & Engineering Indian Institute of Technology Lecture 3 Introduction to System: Hardware In the previous lecture I said that I

More information

From High Level to Machine Code. Compilation Overview. Computer Programs

From High Level to Machine Code. Compilation Overview. Computer Programs From High Level to Algorithm/Model Java, C++, VB Compilation Execution Cycle Hardware 27 October 2007 Ariel Shamir 1 Compilation Overview Algorithm vs. Programs From Algorithm to Compilers vs. Interpreters

More information

Lecture #4: Computer Hardware (CPUs)

Lecture #4: Computer Hardware (CPUs) Lecture #4: Computer Hardware (CPUs) CS106E Spring 2018, Young In this lecture, we begin our two-lecture exploration of Computer Hardware. We start by looking at the different types of computer components

More information

Chapter One. Introduction to Computer System

Chapter One. Introduction to Computer System Principles of Programming-I / 131101 Prepared by: Dr. Bahjat Qazzaz -------------------------------------------------------------------------------------------- Chapter One Introduction to Computer System

More information

Explain the functions of the main components of a basic computer system (Part 2) S. Neebar

Explain the functions of the main components of a basic computer system (Part 2) S. Neebar Explain the functions of the main components of a basic computer system (Part 2) S. Neebar The System Unit The system unit is made up of the computer case or chassis and all the internal electronic components

More information

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design. TUTORIAL 1 1. Make a list of 10 products containing microprocessors that we use everyday. Personal computer Television Calculator Elevator Mobile phones MP3 players Microwave ovens DVD players Engine Control

More information

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T Credit : (2 + 1) / Week 2 TEXT AND REF. BOOKS Text Book: Peter Norton (2011), Introduction to Computers, 7 /e,

More information

Chapter 1: Why Program? Computers and Programming. Why Program?

Chapter 1: Why Program? Computers and Programming. Why Program? Chapter 1: Introduction to Computers and Programming 1.1 Why Program? Why Program? Computer programmable machine designed to follow instructions Program instructions in computer memory to make it do something

More information

HIGHER SECONDARY FIRST YEAR 2 MARK & 5 MARK NOTES CHAPTER 1 1. INTRODUCTION TO COMPUTER

HIGHER SECONDARY FIRST YEAR 2 MARK & 5 MARK NOTES CHAPTER 1 1. INTRODUCTION TO COMPUTER 1. What is computer? CHAPTER 1 1. INTRODUCTION TO COMPUTER A computer is an electronic machine, capable of performing basic operations like addition, subtraction, multiplication, division, etc. The computer

More information

Elementary Computing CSC M. Cheng, Computer Science 1

Elementary Computing CSC M. Cheng, Computer Science 1 Elementary Computing CSC 100 2014-07-14 M. Cheng, Computer Science 1 CPU and Memory Inside of a computer CPU and RAM Clock Speed & Multi-core Microprocessor How a CPU works Secondary Storage 2014-07-14

More information

System Unit. By: Khadeeja Farkash

System Unit. By: Khadeeja Farkash System Unit By: Khadeeja Farkash Objectives - What s a system unit? - What are the components of the system unit and explain their usage? - How does the processor work? - What are the similarities between

More information

Computers Are Your Future

Computers Are Your Future Computers Are Your Future 2008 Prentice-Hall, Inc. Computers Are Your Future Chapter 6 Inside the System Unit 2008 Prentice-Hall, Inc. Slide 2 What You Will Learn... Understand how computers represent

More information

Technology in Action

Technology in Action Technology in Action Chapter 9 Behind the Scenes: A Closer Look at System Hardware 1 Binary Language Computers work in binary language. Consists of two numbers: 0 and 1 Everything a computer does is broken

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures 1 Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

A computer is an electronic device, operating under the control of instructions stored in its own memory unit.

A computer is an electronic device, operating under the control of instructions stored in its own memory unit. Computers I 1. Operating Systems In order to grasp the concept of Operating Systems and understand the different types of windows available we first need to cover some basic definitions. 1.1 Computer Concepts

More information

Computer Architecture 2/26/01 Lecture #

Computer Architecture 2/26/01 Lecture # Computer Architecture 2/26/01 Lecture #9 16.070 On a previous lecture, we discussed the software development process and in particular, the development of a software architecture Recall the output of the

More information

Computers Are Your Future

Computers Are Your Future Computers Are Your Future Twelfth Edition Chapter 2: Inside the System Unit Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall 1 Inside the Computer System Copyright 2012 Pearson Education,

More information

Chapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2

Chapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2 Chapter Introduction to Computers and Programming Hardware Chapter.2 Hardware Categories Input Devices Process Devices Output Devices Store Devices /2/27 Sacramento State - CSc A 3 Storage Devices Primary

More information

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York CSc 10200! Introduction to Computing Lecture 1 Edgardo Molina Fall 2013 City College of New York 1 Introduction to Computing Lectures: Tuesday and Thursday s (2-2:50 pm) Location: NAC 1/202 Recitation:

More information

Week 6: Processor Components

Week 6: Processor Components Week 6: Processor Components Microprocessors So far, we ve been about making devices, such such as adders, counters and registers. The ultimate goal is to make a microprocessor, which is a digital device

More information

COMPUTER ORGANIZATION AND ARCHITECTURE

COMPUTER ORGANIZATION AND ARCHITECTURE Page 1 1. Which register store the address of next instruction to be executed? A) PC B) AC C) SP D) NONE 2. How many bits are required to address the 128 words of memory? A) 7 B) 8 C) 9 D) NONE 3. is the

More information

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate. Hardware Computer Overview A computer item you can physically see or touch. Software A computer program that tells computer hardware how to operate. Information Technology (IT) The broad subject related

More information

5 Computer Organization

5 Computer Organization 5 Computer Organization 5.1 Foundations of Computer Science ã Cengage Learning Objectives After studying this chapter, the student should be able to: q List the three subsystems of a computer. q Describe

More information

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. OS and Computer Architecture Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components Last class: OS and Architecture Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation

More information

Memory Study Material

Memory Study Material Computer memory refers to the devices that are used to store data or programs on a temporary or permanent basis for use in a computer. Any data or instruction entered into the memory of a computer is considered

More information

NETW3005 Operating Systems Lecture 1: Introduction and history of O/Ss

NETW3005 Operating Systems Lecture 1: Introduction and history of O/Ss NETW3005 Operating Systems Lecture 1: Introduction and history of O/Ss General The Computer Architecture section SFDV2005 is now complete, and today we begin on NETW3005 Operating Systems. Lecturers: Give

More information

SSRVM Content Creation Template

SSRVM Content Creation Template SSRVM Content Creation Template Title: Evolution of Computers Contributors: Sreeja. T Std: IV Submission Date: Reviewers: Approval Date: REF No: Brief Description: Goal: Brief History which reveals a clear

More information

Diskrečioji matematika

Diskrečioji matematika Diskrečioji matematika www.mif.vu.lt/~algis Basic structures Introduction program euclid (input, output); var x,y: integer; function gcd (u,v: integer): integer; var t: integer; begin repeat if u

More information

Computer Organization and Programming

Computer Organization and Programming Sep 2006 Prof. Antônio Augusto Fröhlich (http://www.lisha.ufsc.br) 8 Computer Organization and Programming Prof. Dr. Antônio Augusto Fröhlich guto@lisha.ufsc.br http://www.lisha.ufsc.br/~guto Sep 2006

More information

Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Introduction to Programming Language Concepts

More information

Introduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS)

Introduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS) Chapter Introduction Introduction to Computers and Programming (Fall 25, CSUS) Chapter. Introduction Creators of Software Computers perform any job that their programs tell them to do A program is a set

More information

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software All the parts--monitor, printer, hard drive, etc.-- cables, cabinets, and programs that make a computer

More information

CS150 Introduction to Computer Science 1. What is CS150? Who Are We? CS150 is a programming course You will learn

CS150 Introduction to Computer Science 1. What is CS150? Who Are We? CS150 is a programming course You will learn CS 150 Introduction to Computer Science 1 Professor: Shereen Khoja shereen@pacificu.edu 1 What is CS150? CS150 is a programming course You will learn o The mechanics of writing programs in C++ o How to

More information

- Input hardware - Processing hardware - Storage hardware

- Input hardware - Processing hardware - Storage hardware INTRODUCTION TO COMPUTER HARDWARE A Computer system can be broadly classified in to four parts namely: - Input hardware - Processing hardware - Storage hardware - Output hardware A computer is only useful

More information

LECTURE SCHEDULE 2. Units of Memory, Hardware, Software and Classification of Computers

LECTURE SCHEDULE 2. Units of Memory, Hardware, Software and Classification of Computers LECTURE SCHEDULE 2 Units of Memory, Hardware, Software and Classification of Computers Units of Memory The memory unit is the principal storage of the computer. All the data and instructions that the computer

More information

Lesson #1. Computer Systems and Program Development. 1. Computer Systems and Program Development - Copyright Denis Hamelin - Ryerson University

Lesson #1. Computer Systems and Program Development. 1. Computer Systems and Program Development - Copyright Denis Hamelin - Ryerson University Lesson #1 Computer Systems and Program Development Computer Systems Computers are electronic systems that can transmit, store, and manipulate information (data). Data can be numeric, character, graphic,

More information

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer

More information

5 Computer Organization

5 Computer Organization 5 Computer Organization 5.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List the three subsystems of a computer. Describe the

More information

Hexadecimal Numbers. Journal: If you were to extend our numbering system to more digits, what digits would you use? Why those?

Hexadecimal Numbers. Journal: If you were to extend our numbering system to more digits, what digits would you use? Why those? 9/10/18 1 Binary and Journal: If you were to extend our numbering system to more digits, what digits would you use? Why those? Hexadecimal Numbers Check Homework 3 Binary Numbers A binary (base-two) number

More information

Introduction. Arizona State University 1

Introduction. Arizona State University 1 Introduction CSE100 Principles of Programming with C++, Fall 2018 (based off Chapter 1 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State University

More information

Announcement. Computer Architecture (CSC-3501) Lecture 20 (08 April 2008) Chapter 6 Objectives. 6.1 Introduction. 6.

Announcement. Computer Architecture (CSC-3501) Lecture 20 (08 April 2008) Chapter 6 Objectives. 6.1 Introduction. 6. Announcement Computer Architecture (CSC-350) Lecture 0 (08 April 008) Seung-Jong Park (Jay) http://www.csc.lsu.edu/~sjpark Chapter 6 Objectives 6. Introduction Master the concepts of hierarchical memory

More information

Introduction to Computers and Visual Basic.Net Pearson Education, Inc. All rights reserved.

Introduction to Computers and Visual Basic.Net Pearson Education, Inc. All rights reserved. 1 1 Introduction to Computers and Visual Basic.Net 2 OBJECTIVES In this chapter you will learn: Basic computing concepts. The different types of programming languages. The evolution of the Basic Programming

More information

Computer Organization

Computer Organization Objectives 5.1 Chapter 5 Computer Organization Source: Foundations of Computer Science Cengage Learning 5.2 After studying this chapter, students should be able to: List the three subsystems of a computer.

More information

Padasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 STANDARD 11 COMPUTER APPLICATION

Padasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 STANDARD 11 COMPUTER APPLICATION Padasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 I. CHOOSE THE CORRECT ANSWER: 1. C. Power on Self Test 2. d. Optical character reader 3. b. 2 4. c. Peta 5. d. a and b 6. b. 111,

More information