1 / 9

CS 0008 Day 2

CS 0008 Day 2. Today. Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger. Hardware. Physical devices; components

ismet
Télécharger la présentation

CS 0008 Day 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 0008Day 2

  2. Today • Hardware and Software • How computers store data • How a program works • Operators, types, input • Print function • Running the debugger

  3. Hardware • Physical devices; components • CPU – central processing unit. Actually runs the program. Today: microprocessors which fit on a single chip • Main memory – stores the program currently being executed and the data. E.g., your Python program and its variables; text editor and the document you are editing • Random Access Memory – volatile – when the power is turned off, contents are erased • 1 • 1 • 1

  4. Hardware • Secondary storage – holds data even when the power is turned off. Programs and documents you are saving are stored in secondary storage, and loaded into Main Memory as needed. Common: disk drive. • Input devices – keyboard, mouse, scanner, microphone, sensors, etc. • Output devices – video display, printers, etc. • 1 • 1 • 1

  5. Software Programs; code • System software vs application software

  6. System Software • Controls and manages the computer • Users typically do not modify it • Operating system – fundamental! Controls everything. Arranges for data and programs to be loaded into Main Memory; arranges for programs to be run; manages I/O devices; etc. • Linux, Mac OS, Windows are operating systems

  7. Application Software • Editors, powerpoint, spreadsheet programs, email programs, web browers, email programs, programs to calculate financial information, etc!

  8. How Computers Store Data • All information is converted into strings of 0s and 1s (really!) • Bit – binary digit; 1/0; on/off • Byte – 8 bits • Storing numbers and letters (on the board)

  9. How a program works • On the board • Then, back to Python

More Related