CSC 110 – Intro to Computing Lecture 2: More Computing History & Binary Numbers.

Slides:



Advertisements
Similar presentations
Computer Languages omputer language is what machines use to communicate with each other. C.
Advertisements

Standard Index form OCR Module 8.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
Chapter Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing Describe.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
Software Development CS 1 Rick Graziani Spring 2007.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Course: Introduction to Computers
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Chapter 1 The Big Picture Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Chapter 01 Nell Dale & John Lewis.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Software – Applications software and programming languages
Objective: To convert numbers into standard index form
Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Chapter 1 The Big Picture.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Software – Applications software and programming languages.
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
Chapter1: Number Systems
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Jeff Marino & Ron Reed. Main Concepts Object-oriented programming is programming that is based on using premade objects and writing code for the objects.
1 Week 1: The History of Computing: Software READING: Chapter 1.2.
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
CSC 107 – Programming For Science. Positional Notation  Used in nearly all modern numerical systems  Right-to-left ordering of digits within larger.
Introduction to Information Technology Applications.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
PHY 107 – Programming For Science. Positional Notation  Used in nearly all modern numerical systems  Right-to-left ordering of digits within larger.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Programming and Languages Dept. of Computer and Information Science IUPUI.
Chapter 2 Binary Values and Number Systems Chapter Goals Distinguish among categories of numbers Describe positional notation Convert numbers in.
COP3502: Introduction to Computer Science Yashas Shankar Program Translation.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 2 Computer Organization.
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Chapter 7: Low-Level Programming Languages Chapter 7 Low-Level Programming Languages Page 66 In order to execute instructions on a CPU, those instructions.
Chapter 2- Visual Basic Schneider1 Programming Languages: Machine Language Assembly Language High level Language.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Lecturer: Santokh Singh
Computer Applications in Business
Why don’t programmers have to program in machine code?
 2001 Prentice Hall, Inc. All rights reserved.
Software Mr. Singh.
CSCI-235 Micro-Computer Applications
Machine code Recall that all a computer recognises is binary code.
Course: Introduction to Computers
Translators & Facilities of Languages
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
ECE 301 – Digital Electronics
Text by: Lambert and Osborne
Terminating and Repeating Decimals
Computer Science 1 Review and finish Number base conversion
Presentation transcript:

CSC 110 – Intro to Computing Lecture 2: More Computing History & Binary Numbers

Announcements A notetaker is still needed for this course. You can earn $50 for coming to class and taking good notes. Interested students should talk to me.

“Paperbook Computer” Use handouts for to guide your own note- taking Video will also be available from the library

1 st Generation of Software Earliest programs written in machine code  “Language” used by the computer itself  Written in binary (for modern Mac):  Could be a little difficult to use

1 st Generation of Software Assembly language quickly followed  Uses mnemonic codes and numbers  Translates directly to machines code  Example: lwz r1,4(r0) lwz r2,8(r0) add r3,r2,r1  Slightly better than machine code

1 st Generation of Software Why didn’t people immediately use assembly language?

2 nd Generation of Software Advances in technology enabled higher- level languages  FORTRAN, COBOL, Lisp continue to be used Code became much more readable: Lisp example: (setq a …) (setq b …) (setq c (+ a b)) Easier to move program from one machine to another

3 rd Generation of Software Keyboards and screens proliferate People on computer simultaneously Led to new uses of computers  Word processors  Databases  SPSS (statistical program)

4 th Generation of Software Languages designed to be easier to use BASIC: let a = … let b = … let c = a + b Applications developed for everyday users  Spreadsheets  Financial software  Desktop publishing

5 th Generation of Software Computers become ubiquitous  Increasing expectations of computer access  “Little knowledge” needed for use Applications take advantage of graphics, networks  “World Wide Web”  Graphics intensive games

Introduction to Numbers Natural numbers  Whole-numbers 0 and greater  E.g., 0, 10, 192, , Integers  All natural and negative numbers  E.g., 0, 12, -12, , ,

More Numbers Rational Numbers  Numbers equal to the ratio of two integers  E.g., 0, -345, 0.45, , ⅓, … For now, we focus on natural numbers

Base of a number We normally work in base 10 Computers typically work in base 2 What do we commonly use from a base 60 system?

Base of a number Base 10 (“decimal”) uses 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Base 2 (“binary”) uses 2 digits: 0, 1 Base 8 (“octal”) uses 8 digits: 0, 1, 2, 3, 4, 5, 6, 7 Base 16 (“hexadecimal”) uses 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B

Base 1 The simplest (and oldest) counting method is base 1 How would a base 1 system work?

Counting in Decimal How big is “13” or “2438”?  How do you know?  13 ==  2438 ==

Numerical Value Value of a number depends on the base  The value of “13” in base = 3 * 10 0 = 3 +1 * 10 1 = 10  The value of “2438” in base =8 * 10 0 = 8 +3 * 10 1 = * 10 2 = * 10 3 = 2000

Positional Notation Used to compute value for all numerical bases > 1 For base 10, values are computed by: d n * 10 n-1 + d n-1 * 10 n-2 + … + d 2 * d 1 * 10 0 Any guesses why we use the term “base”?

Binary Numbers Modern computers work in binary (base 2)  Some early machines used decimal (base 10) Positional notation for binary is similar to decimal What would 1010 equal?

The Prof. Cheats Need the base to know the value of “1010”!  1010 is a valid number in many bases What is the value of the binary 1010 in decimal? 1010 = 0 * * * * 2 3 =0 * * * * 8 = = 10

Octal Base 8 is often used in computer science Values still computed via positional notation d n * 8 n-1 + d n-1 * 8 n-2 + … + d 2 * d 1 * 8 0 Why do programmers love Halloween? (Hint: What is the value of oct 31?)

For Next Lecture Have Chapters 1 & 2 finished Be ready to discuss:  Hexadecimal numbers  Converting from decimal to other bases  Arithmetic in bases other than 10