1 / 0

Name: Dr. Anvik Office: Hebler 214-D Phone number: 963-2901 CWU page:

Name: Dr. Anvik Office: Hebler 214-D Phone number: 963-2901 CWU page: www.cwu.edu/~janvik Syllabus: www.cwu.edu/~janvik/cs101. So, what is a computer?. Computer Systems: Hardware.

necia
Download Presentation

Name: Dr. Anvik Office: Hebler 214-D Phone number: 963-2901 CWU page:

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. Name: Dr. Anvik Office: Hebler 214-D Phone number: 963-2901 CWU page: www.cwu.edu/~janvik Syllabus: www.cwu.edu/~janvik/cs101
  2. So, what is a computer?
  3. Computer Systems: Hardware Computer hardware components are the physical pieces of the computer. The major hardware components of a computer are: The central processing unit (CPU) Main memory Secondary storage devices Input and Output devices
  4. Computer Systems: Hardware 1-37
  5. Computer Systems: HardwareMain Memory Commonly known as random-access memory (RAM) RAM contains: currently running programs data used by those programs. RAM is divided into units called bytes. A byte consists of eight bits that may be either on or off. A word consists of 2 bytes.
  6. So, why 1 byte 8 bits? 0 = 0 1 = 1 2 = 10 3 = 11 4 = 100 5 = 101 6 = 110 7 = 111 8 = 1000 9 = 1001 10 = 1010 11 = 1011 12 = 1100 13 = 1101 14 = 1110 15 = 1111 16 = 10000 17 = 10001 18 = 10010 19 = 10011 20 = 10100 The earliest computers could only send 8 bits at a time, it was only natural to start writing code in sets of 8 bits. This came to be called a byte. Binary computers motivate designers to making sizes powers of two. Powers of 2 are magic (mathematically speaking)! Since the "standard" character set required 7 bits anyway(ASCII defined a 7-bit character set.), it wasn't much of a stretch to add one more bit to get a power of 2. The first widely adopted 8-bit microprocessor was the Intel 8080, being used in many hobbyist computers of the late 1970s and early 1980s, often running the CP/M operating system; it had 8-bit data words and 16-bit addresses. There are 28 (256) possible values for 8 bits. So what is 1011 anyhow? (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = 8 + 0 + 2 + 1 = 11
  7. Computer Systems: HardwareSecondary Storage Devices Secondary storage devices are capable of storing information for longer periods of time (non-volatile). Common Secondary Storage devices: Hard drive Floppy drive CD RW drive CD ROM DVD RAM drive Compact Flash card
  8. Computer Systems: HardwareInput Devices Input is any data the computer collects from the outside world. That data comes from devices known as input devices. Common input devices: Keyboard Mouse Scanner Digital camera
  9. Computer Systems: HardwareOutput Devices Output is any data the computer sends to the outside world. That data is displayed on devices known as output devices. Common output devices: Monitors Printers Some devices such as disk drives perform input and output and are called I/O devices (input/output).
  10. Computer Systems: Software Software refers to the programs that run on a computer. There are two classifications of software: Operating Systems Application Software
  11. Computer Systems: SoftwareOperating Systems An operating system has two functions: Control the system resources. Provide the user with a means of interaction with the computer. Operating systems can be either single tasking or multi-tasking.
  12. Computer Systems: SoftwareOperating Systems A single tasking operating system is capable of running only one program at a time. DOS A multitasking operating system is capable of running multiple programs at once. Windows Unix Mac OS X
  13. Computer Systems: SoftwareOperating Systems Operating systems can also be categorized as single user or multi-user. A single user operating system allows only one user to operate the computer at a time. Multi-user systems allow several users to run programs and operate the computer at once.
  14. Computer Systems: SoftwareApplication Software Application software refers to programs that make the computer useful to the user. Application software provides a more specialized type of environment for the user to work in. Common application software: Spreadsheets Word processors Accounting software Tax software Games
  15. Programming Languages A program is a set of instructions a computer follows in order to perform a task. A programming language is a special language used to write computer programs. A computer program is a set of instructions that enable the computer to solve a problem or perform a task. Collectively, these instructions form an algorithm
  16. Programming Languages An algorithm is a set of well defined steps to completing a task. The steps in an algorithm are performed sequentially. A computer needs the algorithm to be written in machine language. Machine language is written using binary numbers. The binary numbering system (base 2) only has two digits (0 and 1).
  17. Programming Languages The binary numbers are encoded as a machine language. Each CPU has its own machine language. Motorola 68000 series processors Intel x86 series processors ARM processors, etc. Example of a machine language instruction: 1011010000000101
  18. Programming Languages In the distant past, programmers wrote programs in machine language. Programmers developed higher level programming languages to make things easier. The first of these was assembler. Assembler made things easier but was also processor dependent.
  19. Programming Languages High level programming languages followed that were not processor dependent. Some common programming languages: Java C Visual Basic BASIC C++ Python COBOL C# Ruby Pascal PHP JavaScript
More Related