How a computer works - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

How a computer works

Description:

IRC, Email, gopher, FTP, archie. HTTP, WWW. VOIP, Internet Video. P2P, Sensor Networks ... This is just a to inform you to backup your data! ... – PowerPoint PPT presentation

Number of Views:126
Avg rating:3.0/5.0
Slides: 20
Provided by: mil94
Category:
Tags: computer | gopher | works

less

Transcript and Presenter's Notes

Title: How a computer works


1
How a computer works?
  • CS0004
  • Introduction to Programming

2
First, What is a computer?
  • CPU (central processing unit)

3
First, What is a computer?
  • CPU (central processing unit)
  • Memory

4
First, What is a computer?
  • CPU (central processing unit)
  • Memory
  • Hard Disk

5
First, What is a computer?
  • CPU (central processing unit)
  • Memory
  • Hard Disk
  • IO Devices (input/output)

6
How does it work?
Monitor
CPU
Keyboard
Hard Drive
7
Whats with the storage?
  • Fast at the top, but very small!

Input/Output - IO Devices
8
How are they connected?
  • Client/Server model
  • Internet Evolution
  • IRC, Email, gopher, FTP, archie
  • HTTP, WWW
  • VOIP, Internet Video
  • P2P, Sensor Networks

9
The Internet
  • Computers connected to each other

10
What is Programming?
  • Everything the CPU does is with strings of 0s
    and 1s
  • 110101000101110101
  • Assembly Languages
  • Specific to CPU (Intel, PowerPC, AMD)
  • High-level Languages
  • C, Java, and VB!

11
Exploring Windows
  • Let me show you.

12
Backup, Backup!
  • This is just a slide to inform you to backup your
    data!
  • Its important because I dont accept the excuse I
    lost my data.
  • Backup, Backup, Backup.

13
What is a program?
  • Collection of instructions that
  • Accepts input
  • Process Data
  • Outputs results

Input
Process
Output
14
How do you program?
  • Analyze what you need
  • I need to calculate monthly payments.
  • Design the program
  • Monthly payment (interestbalance)/term
  • What it going to look like? Interface design
  • Code
  • Write code to implement design
  • Test and Debug
  • Make sure everything works

15
Whats different about VB?
  • Traditional Programs
  • Text Interfaces (ugly)
  • In total control until program ends
  • Windows Based Application
  • User Driven Interfaces (GUIs)
  • User in control of the system
  • Event driven

16
Writing Programs in VB
  • Design Interface
  • Decide what events to handle
  • Write code for each event
  • Test, Debug, Test, Debug, Test, Debug, Test,
    Debug, Test

17
Example
  • Collect a list of numbers and find the average of
    that list.

18
Definitions
  • Program Series of instructions a computer
    understand
  • In VB a program is called a project
  • Algorithm Series of steps to solve some problem
  • Note a computer doesnt understand an algorithm
  • Implementing Process of converting an algorithm
    into a program

19
VB Example
  • Lets just take a look
Write a Comment
User Comments (0)
About PowerShow.com