![]() |
Lesson Plan |
| ITCSS Home | Student Center | TallTech Home |
|
Title |
Program Development and Programming Languages |
|
Time Allotment |
5 hrs |
Read chapter 12 from Discovering Computers 2000
Explain the six steps in the program development life cycle
Describe top-down program design
Explain structured program design and the three basic control structures
Explain the differences among the categories of programming languages
Describe the object-oriented approach to program development
Identify programming languages commonly used today
Identify the uses of application generators, macros, and RAD tools
Assignment #: DC04
Assignment: Recipe Pseudocode & Flowchart
Due: Start of class - Oct 6/99
Marks: 10 marks
PART A: Design a program in pseudocode that
describes how to prepare your favorite recipe. After typing the
recipe, do the following:
Make sure everything is broken down into a number of steps
Number each of the steps
Indent/nest where necessary (in loops, conditions, etc.)
PART B: Develop a flowchart to graphically represent the control structure of your program.
Assignment Background Info
Sequence: Instructions typically follow a particular sequence. Computer instructions must be explicit.
Get cup
Pour Tea
Drink Tea
Repetitions: Sometimes steps are repeated. "Pour hot tea into each teacup"
REPEAT
GET a NEW teacup
pour the hot tea INTO that teacup
UNTIL the teapot is empty OR there are no more teacups available
Selection/Conditional: Computer can make choices
IF milk wanted, do this:
add milk to tea
ELSE, do this:
add nothing
Key words to capitalize:
FOR EACH, REPEAT, UNTIL, WHILE, IF, THEN, ELSE, SELECT
FROM, NEW
DELETE, PUT, GET, INTO
Example (to make tea):
SELECT earl grey FROM shelffill tea kettle with waterPUT tea kettle on stoveREPEATapply heat to tea kettleUNTIL tea kettle boilsGET tea kettle from stoveturn off stovePUT earl grey tea INTO teapotpour tea kettle INTO teapotwait UNTIL tea is readyREPEATGET a NEW teacuppour teapot INTO teacupIF tea drinker like lemon THENPUT lemon INTO teacupENDIFUNTIL teapot is empty OR there are no more teacupsPUT teapot back in kitchen