Page 1 of 1

The modularisation process: 6 Steps

PostPosted: Wed May 27, 2015 4:02 am
by mrmiles
The modularisation process:

6 Steps for creating a Inter-Communicating Modular solution:

Step 1 - IPO

Step 2 - Grouping Modules

Step 3 - Hierarchy Chart (with arrows passing data / value parameters)

Step 4 - Pseudocode MAINLINE

Step 5 - Pseudocode MODULES

Step 6 - TEST (Desk Check)

Re: The modularisation process: 6 Steps

PostPosted: Wed May 27, 2015 4:29 am
by mrmiles
6 Steps for Modules (common errors / thinking checklist...from Yr 12 Class, 26/05/15)


Step 0 – Write out and highlight nouns and verbs

UNDERSTAND THE NATURE / CONTEXT OF THE QUESTION BEFORE YOU START!!

Is it about tax, employees salaries, accounts, leap years, cheque books etc?

Step 1 – IPO

Receive in (instead of seperate Prompt & Get)
DON’T use Psuedo in the PROCESS Column
Calculate
Compute
Analyse
Process
Validate
Print vs Display || Output


Step 2 – Grouping Modules

All process become modules



Step 3 – Hierachy Chart

Meaningful names for modules & MAINLINE



Step 4 – Mainline (Calling Module for all Called Sub-Modules)

Driver Algorithm (Main Control)
Highlight your Sub-Modules to be coded next
Be bold and assume lots for sub-modules! (Code later)
Be on the look for sneaky LOGIC / Sentinel (Terminating condition)


Step 5 – Coding sub modules (Called modules hand back to Calling once over)

Highlight your Sub-Modules so they line up with Mainline
INDENTATION
Pseudo Protocol – BEGIN … END, IF …END IF