ULO 1 Week 1
ULO 1 Week 1
Week ULO
1
Discuss the program structure and the basic elements of Java
2
programming and apply them appropriately in a program.
3
4 Use Control structures to efficiently implement branch and
5 looping algorithm in programs
6
7 Explore user-defined methods and ways of manipulating
8 records and to correctly apply all concepts in a self-developed
9 application
Discuss the program structure and the basic elements of Java programming and apply them
appropriately in a program.
METALANGUAGE
Programming Language are languages that people us which are similar to human
language, which will be translated into machine code for the computer to understand.
Comments are denoted by // for a single line comment and /* at the start of a block of
statements to comment and */ to close the block of statements that you want to comment.
Data types specify the different sizes and values that can be stored in the variable.
Primitive type variables directly store data into their memory space.
Reference variables store the address of the object containing the data.
College of Computing Education
3rd Floor, DPT Building
Matina Campus, Davao City
Telefax: (082)
Phone No.: (082)300-5456/305-0647 Local 116
ESSENTIAL KNOWLEDGE
To build programs, people use languages that are similar to human language. The
results are translated into machine code, which computers understand.
Programming languages have evolved over the years. The following shows a
timeline of the evolution up to year 2000.
College of Computing Education
3rd Floor, DPT Building
Matina Campus, Davao City
Telefax: (082)
Phone No.: (082)300-5456/305-0647 Local 116
• These are the first generation languages that are the most basic type of
computer languages, consisting of strings of numbers the computer’s
hardware can use.
• The different types of hardware use different machine code. For eg. IBM
computers use different machine language than Apple computers.
• Higher-level languages are more powerful than assembly language and allow
the programmer to work in a more English-like environment.
• Higher-level programming languages are divided into three “generations”,
each more powerful than the previous:
o Third-generation languages (eg. FORTRAN, COBOL, C, C++,
BASIC)
o Fourth-generation languages (eg. SOL, CSS, Coldfusion)
o Fifth-generation languages (eg. Mercury, Prolog, OPS5)
2. Programming Methodologies
It is important to understand that in order to come up with a good program that meets
the requirements of the user, the Problem-Analysis-Coding-Execution cycle should
be adopted. The programmer should use the algorithm and the flowchart to help
him.
• Algorithm: a step-by-step problem-solving process in which a solution is
arrived at in a finite amount of time
• Flowchart : a graphical form of problem-solving process.
College of Computing Education
3rd Floor, DPT Building
Matina Campus, Davao City
Telefax: (082)
Phone No.: (082)300-5456/305-0647 Local 116
A rectangle represents a
Process process
A diamond represents a
Decision decision
To connect to another
On-page connector symbol on the same page
To create a reference
Off-page Connector from a process on one
page to a process on
another page.
A hexagon represents the
Initialization assignment of initial
values to a variable.
1. Sequence - Straight forward, which means that the statements in a code are
executed one after another in the order as it is written in algorithm or in the source
code.
College of Computing Education
3rd Floor, DPT Building
Matina Campus, Davao City
Telefax: (082)
Phone No.: (082)300-5456/305-0647 Local 116
Check the example below showing the algorithm and it’s equivalent flowchart
for SEQUENCE Structure.
College of Computing Education
3rd Floor, DPT Building
Matina Campus, Davao City
Telefax: (082)
Phone No.: (082)300-5456/305-0647 Local 116
SELF-HELP
For flowcharting tool, take note that you can use available online flowcharting software like
LucidChart at http://lucidchart.com. It also provides templates which you can use. You can
also simply use the Microsoft Word to do your flowchart.
The following are resources that you can use in the course of learning this subject:
• Smith, Jo ann (2015). Programming Logic and Design, Cengage Learnings (Lab
Manual)
• Pomperada, Jake et. al (2016). Intro to Java Programming, Mindshapers Co., Inc, Great
Books
• Padre, Nilo et .al. (2016). Programming Concepts: Logic Formulation
• Berkovic, et. al (2016). Computers and Programming: Theory and Problems
• Joyce Farrell (2015). PROGRAMMING LOGIC AND DESIGN Introductory Version 8th
Edition
• Ford, Jerry Lee (2015). Programming for the Absolute Beginner, Cengage Learning,
https://ebookcentral.proquest.com/lib/uniofmindanao-ebooks/detail.action?docID=3136799
• Malik, D.S (2010). Java Programming. From Problem Analysis to Program Design.
You are not limited to these resources. Feel free to do your research and learning from the
internet and Youtube lessons!