introduction to computers and python. what is a computer? computer- a device capable of performing...

17
Introduction to Computers and Python

Upload: alexandrina-parrish

Post on 11-Jan-2016

222 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Introduction to Computers and Python

Page 2: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

What is a Computer?

Computer- a device capable of performing computations and making logical decisions at speeds millions times faster than humans.

Computer Program- set of instructions that tells the computer what to do.

Page 3: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Computer Programmers

The individuals that write programs for the computer.

That’s what you will all be doing in this course.

Page 4: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Hardware- devises that make up the computer such as the keyboard, screen, mouse, disks, memory, CD-ROM, and processing unit.

Software- The programs that run the computer.

Current trend- as hardware costs drop the cost for software rises.

Page 5: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Computer OrganizationSix Logical Units 1. Input Unit- “Receiving Unit”.

Section of the computer that obtains information.

Types of Input Devises Keyboard Mouse Microphone Scanner Digital camera

Page 6: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

2. Output Unit- “Shipping” section . Section of the computer that takes information that the computer has processed and places it on various output devises

Output Devises

Monitor, printer, audio-visual devises.

Page 7: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

3. Memory Unit

“warehouse section”- temporarily stores data. The memory unit retains information that has been entered through the input unit.

Often called RAM- Random Access Memory

Volatile- erased when machine is turned off.

Page 8: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

4. Arithmetic and Logic Unit. ALU “Manufacturing “ section-

Responsible for the performance of calculations such as addition and multiplication. It also contains the decision mechanisms allowing the computer to perform such tasks as determining whether two items stored in memory are equal.

Page 9: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

5. Central Processing Unit CPU “administrative section’ This

section coordinates the operation of the other sections.

Acts as the brain of the computer telling it to use the appropriate unit.

Page 10: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

6. Secondary Storage Unit “long-term warehousing” This

refers to the hard drive, disks, network or other places data is stored when not being actively used.

Information in this type of storage takes longer to access than information stored in primary storage

Not Volatile

Page 11: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Different Programming Languages Machine Language- the only language

a computer can understand directly. Consists of a stream of numbers which are ultimately reduced to 0’s and 1’s

This might be the machine code to add two numbers together

00011101010 Every machine has a different machine

language

Page 12: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Assembly-used English like abbreviations to represent elementary operations of the computer.

LOAD x,y ADD x + y

Still different on every computer

Page 13: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

High-Level Languages- a programming language in which single statements accomplish substantial tasks.

Can be used on different computers Compilers work as translation

programs converting high-level language to machine language.

Sum= x + y

Page 14: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Python and other High-Level Languages

Python was created from the start to be easy to learn. Python programs are about the easiest to read, write and understand.

Python is free. Python is open source software. Any user can

extend Python Used by thousands of professionals around the

world including NASA and Google. Runs on different kinds of computers.

Page 15: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Other High-Level Languages C, C++, Java, C#, Pascal, COBOL,

FORTRAN

Structured Programming- designig programs so they are easy to follow and easy to modify. Went from general to more specific. Programs were broken into modules.

Page 16: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Questions

Computers can only understand their native ______ language.

Computers process data under the control sets of instructions called computer _______.

Name the three types of languages discussed in this chapter.

Programs that change high level language to machine language are called______.

Page 17: Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds

Name two input and two output devises.

Why is the CPU called the brain of the computer?

What are the two types of operations performed by the ALU?

In this class you will become____ programmers.