Monday, March 21, 2011

lecture 7

Comsc-110 Lecture Topic 1, Programming Concepts






Comsc-100 Lecture 7
Networking

Instructor: Prof. Tony Chern (tchern@dvc.edu)

OSI 7 Layer Reference
Wiki OSI Model 

Media (1-3) Layers
  1. Physical - bit
  2. Link - frame
  3. Network - packet
Host (4-6) Layers
  1. Presentation - segment
  2. Session - data
  3. Transport
Application (7th) Layer 

Advantages p.308-p.309
LAN and WAN to share resources:
  • Peripheral 
  • Storage - Folders and Files
  • Router - Internet Access

Network Architecture
Peer-to-Peer Network: locally managed
Client/Server Network: centrally managedComputer Languages
programs for typing computer code
computer language
  strict, simplified versions of English
strict: spell, case, and puncuate just right
  VISUAL 5
simplified: uses a small set of keywords (100 or so)
  if, while, for, break,... VISUAL 6
Text Editors
Windows XP Notepad VISUAL 7
  with status bar and no wrap
UNIX or Linux vi VISUAL 8
Apple MacOSx TextEdit
avoid RTF editors like WordPad
avoid word processors
  formatting and pagination
Code Editors And IDEs
syntax highlighting, templates,...
JNotePad (avail. from class website) VISUAL 9
many free or inexpensive programs on Internet
interactive development environments (IDEs) VISUAL 10
  built-in code editor
  1-key compiling
  step-by-step debugging
Compilers
convert code into computer program
  code: in .cpp files
    VISUAL 11
  program: in executable files
    VISUAL 12
Elements Of The Language
VISUAL 13: textbook section 1.4.1
statement -- like a sentence
expression -- like a phrase
Sequential Processing
left-to-right in a "line"
lines top-to-bottom
"learning experiences" vs. instructions
  computers follow instructions
  they do not remember relationships
  e.g.: what does area = width * height mean?
Detours!
interuptions in sequential processing
branching: skipping lines
looping: repeating back to a line
subprograms: moving details elsewhere


Watch this space
This space at the end of the lecture notes is used in future lecture notes to include "how to's", with practical examples to help you with your lab assignments. These are not discussed in lectures or in any other written materials for this class, so make sure that you look for them yourself! Here's one now:

How to program
Right-click (or ctrl-click on Apple) here to download and save a brief, introductory PDF!

0 comments:

Sponsored By