CSci 105

Introduction to Computers

Lecture 24

© Morris Firebaugh

 


I. Introduction

A. Chapter 14: Programming and Languages

B. The Programming Process

C. Levels of Language

D. Programming in HyperLogo


II. Chapter 14: Programming and Languages - Telling the Computer What to Do

Background

 


III. The Programming Process

The 5 steps in the programming process:

 

1) Define the Problem

 

2) Plan the Solution

Flowchart Symbols and a Flowchart

 

1. Address envelope
2. Fold letter
3. Place letter in envelope
4. If out of stamps
    4.1 Borrow or buy stamp
5. Place stamp on envelop

 

3) Code the Program

 

4) Test the Program

 

5) Document the Program

 


IV. Levels of Language

The 5 generations of programing languages [from lowest to highest]

  1. Machine language
  2. Assembly language
  3. High-level language
  4. Very high-level language
  5. Natural language

Machine language

 

Assembly language

 

High-level language

 

Very high-level language

 

Natural languages

 

Two critical issues concerning level of language

 


V. Programming in HyperLOGO

1. Sequence (stepping)

2. Iteration (looping)

3. Decision (branching)


 

 


VI. Laboratory Assignment # 13

Click here

 

Consider the following conversation with Weisenbaum's ELIZA:


HELLO. MY NAME IS ELIZA. WHAT'S YOURS?
Morris
ALRIGHT, MORRIS, WHAT WOULD YOU LIKE TO TALK ABOUT TODAY?
how about school work?
WHAT IS IT THAT YOU REALLY WANT TO KNOW, MORRIS?
How am I doing in my courses?
DO YOU THINK I AM DOING IN YOUR COURSES NOWAY?
no, I don't
DON'T YOU REALLY?
not really
PLEASE GO ON.
I'm afraid I'm flunking Intro to Computers
DO COMPUTERS WORRY YOU, MORRIS?
			




Updated April 3, 2001