Beruflich Dokumente
Kultur Dokumente
Session 1 References Course outline COBOL From Micro to Mainframe (R.T Grauer) COBOL Programming Supplementary Notes (optional) Simple Program Design (L. A. Robertson) (optional) Session slides / Reference Manual
e-mail
Office
SANSCHM@ALGONQUINCOLLEGE.COM
Room T319, Technology Building Woodroffe Avenue Campus
Final Exam -----> 40% 3 projects --------> 20% (5%, 5%, 10%) participation -----> 5% (session exercises) ---To pass the course, you must score 50% on combined Mid-term test and Final exam (37.5 points of available 75)
6
NOTE
Projects Project 1A (2%) and 1B (3%) Project 2A (2%) and 2B (3%) Project 3A (10%) Parts A and B to be submitted (and marked) separately.
Participant will be able to : define the steps of the Program Development Cycle
define
the need and use of logical narratives and diagrams ( Logical Models) the meaning of the different symbols used in Flowcharts and Function charts
9
define
Logical Models
NOTE -- the logical model is independent of the code; it is a model of the logic -- not the code.
10
Logical Models
Logical model
Graphical
Program
language independent
11
Logical Models
12
Sequential step diagrams * Sequential step narratives * Decomposition diagrams * Data Definition diagrams or narratives Data flow diagrams Decision tables and trees Input / process / output diagrams *
13
- diagrams the sequence of actions - includes individual actions and decision points - uses a specific set of symbols narrative of action sequence - includes individual actions and decision points - uses a prescribed language set (structured language)
14
pseudocode-
Input (data)
Process
Output (information)
shows the flow / sequence of activities within a solution set diagrams the flow and the control / decision points can be used in a top down approach
(structured flowcharts)
symbols represent the type of activity internal narrative specifies the actual activity ANSI standard
16
Pre-defined Process
Input or Output
17
Input or Output
18
Input or Output
19
Input or Output
20
Input or Output
21
top to bottom --- left to right one function / process per page clear narrative in each symbol what is being done (opcode/ action) what is the object of the action (operand/object) arrows show flow of the activities all flow charts must have a beginning and an end
22
no
yes
Main process
stop
23
end
24
Decomposition Diagrams
Function Charts - a diagram of the functional breakdown of processes (AKA - hierarchy charts, structure charts)
- a modular structure of the solution set (from overall function down to specific tasks)
25
27
As each level is described, it is validated prior to further breakdown The order of execution is determined for each subordinate process or activity Any duplicate processes or activities are noted Any repetitive processes or activities are noted Any one on one breakdowns are eliminated Any modules conditionally executed are noted Data or control elements are noted
28
One on One breakdowns are not permitted An upper level module controls the execution of a subordinate modules Modules either control subordinate modules or do actual work -- not both A numbering scheme is commonly used to help distinguish modules and their hierarchical level Statement in each module should clearly describe the function/process/activity
29
Return Home
30
Get Passport
31
general
solution outline (any level) may show sequence of processes may show detail of both input and output
32
I
Input specifications
P
processing steps and sequence
O
Output description
33
Data store
Data store
34
HIPO chart / Defining diagram- shows input, process, output Nassi Schneiderman- shows process breakdown
35
Session 1 exercise 1
Draft a two or three level function chart that shows your activities in getting up in the morning (assuming you do get up in the morning and not in the afternoon) Remember to think in broad general terms at the top of the hierarchy and move to more specifics as you break the function down to processes.
36
Session 1 exercise 2
Draft a flowchart or pseudocode for one of the processes or activities in your function chart. The flowchart should detail the specific actions taken within the process or activity. Remember to think in specific terms and include any decision points that are required.
37
Session Wrap-up
Once you have completed the two exercises, submit them to me, via Mail Box (3rd floor), or by e-mail SANSCHM@ALGONQUINCOLLEGE.COM I will return my solution for each of these to you. Refer to EXAMPLE1 Proceed to Session2
38