1. Computers and programs - 1 COMPUTERS AND PROGRAMS Rocky...

Info icon This preview shows pages 1–13. Sign up to view the full content.

1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Objectives To understand the basic design of a modern computer. To understand the form and function of computer programming languages. To begin using the Python programming language.
Image of page 2
Hardware and software: which is more important? Source: - important-hardware-software/abr0137l/
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

0 and 1 conquer the world! Bit: bi nary digi t Byte Binary number system Binary arithmetic (Gottfried Wilhelm von LEIBNIZ (1646-1716))
Image of page 4
Why only two values? Source: Charles Dierbach. 2013. Introduction to Computer Science Using Python. Wiley.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

The binary number system Source: Charles Dierbach. 2013. Introduction to Computer Science Using Python. Wiley.
Image of page 6
Raspberry Pi
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Hardware basics
Image of page 8
Hardware Basics The central processing unit (CPU) is the “brain” of a computer. The CPU carries out all the basic operations on the data. Examples: simple arithmetic operations, testing to see if two numbers are equal.
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Hardware Basics Memory stores programs and data. CPU can only directly access information stored in main memory (RAM or Random Access Memory). Main memory is fast, but volatile , i.e. when the power is interrupted, the contents of memory are lost. Secondary memory provides more permanent storage: magnetic (hard drive, floppy), optical (CD, DVD)
Image of page 10
The memory hierarchy Source:
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Hardware Basics Input devices
Image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '16
  • Rocky Chiang
  • Computer program, Hardware Basics, Type print

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern