Professional Documents
Culture Documents
College For Research and Technology
College For Research and Technology
Sector
Qualification Title
PROGRAMMING NC IV
Unit of Competency
Module Title
Learning Outcomes:
1. Select the program logic design approach
2. Document the program logic or design
3. Validate the design
A. INTRODUCTION: This module defines the competency required to describe the various processes in a program to
ensure that there is understanding of user and design requirements.
B. LEARNING ACTIVITIES
LO1 Select the program logic design approach
Learning Content
Methods
Presentation
PROGRAMMING NC IV
Practice
Feedback
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 1
Resources
Time
The
program
design and
structure
Lecture/
Demonstratio
n
Read
Information Perform
Sheet 1.1-1 of the Self-check
Program design and 1.1-1
structure
Check
Answer
Answer
1.1-1
your Information
54Hr
to Sheet
with s
key answer key
C. ASSESSMENT PLAN
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 2
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 3
INTRODUCTION
The programming process is similar in approach and creativity to
writing a paper. In composition, you are writing to express ideas; in
programming you are expressing a computation. Both the programmer and
the writer must adhere to the syntactic rules (grammar) of a particular
language. In prose, the fundamentalidea-expressing unit is the sentence; in
programming, two units statements and comments are available. Standing
back, composition from technical prose to fiction should be organized
broadly, usually through anoutline.
The outline should be expanded as the detail is elaborated, and the
whole reexaminedand re-organized when structural or creative flaws arise.
Once the outline settles, you begin the actual composition process, using
sentences to weave the fabric your outline expresses. Clarity in writing
occurs when your sentences, both internally and globally, communicate the
outline succinctly and clearly. We stress this approach here, with the aim of
developing a programming style that produces efficient programs that
humans can easily understand.
Fundamentals of Program Design
Every computer program is built from components, data, and control.
For a single-user application (used by one person at a time), which
normally reads data, saves it in a data structure, computes on the data,
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 4
and writes the results, there is a standard way of organizing the component
structure, data structure, and control structure:
1. First, design the program's component structure with three
components, organized in a model-view-controller pattern.
2. Next, decide what form of data structure (array, table, set, list, tree,
etc.) will hold the program's data. The data structure will be inserted
in the program's model component.
3. Then, write the algorithm that defines the execution steps --the control structure. The algorithm will be placed inside the
program's controller.
4. Determine the form of input and output (disk file, typed text in a
command window, dialogs, a graphical-use interface, etc.) that the
program uses.
Systems development, in simplest terms, is a six-stage process or life cycle
(SDLC) that consists of phases, which often overlap and typically may
include:
1. conducting a preliminary investigation;
2. then analyzing the system;
3. designing and
4. developing the system before
5. implementation, and finally
6. providing systems maintenance, including updating and upgrading,
with the possibility of beginning the process all over again
So, in order to design a program, there are essentially two steps that involve
determining:
1. the program logic and
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 5
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 6
Do Until
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 7
Do while
This structure is opposite to Do until structure. The actions are repeated
while the condition remains true. If the condition is false, the execution
cannot be generate or the execution of the action stop the production.
PROGRAMMING NC IV
Date Developed:
December 2016
Date Revised:
Developer
DJ Clark Mariano
Aris Joepher O. Santarina
Megan Parena
Document No.
Page 8