0% found this document useful (0 votes)
287 views36 pages

Revision UPS 1

The document discusses programming concepts including types of programming languages (low-level vs high-level), programming paradigms (procedural, object-oriented, logic), steps in problem solving, designing algorithms using pseudocode and flowcharts, types of control structures (sequence, selection, repetition), and the structure of object-oriented programming (class, object, method).

Uploaded by

Haikal Hakimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
287 views36 pages

Revision UPS 1

The document discusses programming concepts including types of programming languages (low-level vs high-level), programming paradigms (procedural, object-oriented, logic), steps in problem solving, designing algorithms using pseudocode and flowcharts, types of control structures (sequence, selection, repetition), and the structure of object-oriented programming (class, object, method).

Uploaded by

Haikal Hakimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 36

REVISION UPS 1 SC025

2022/2023
1.0 Introduction to
Programming
Types of Programming Language

1. ?

2. ?
Types of Programming Language

1. Low level language

2. High level language


Types of Programming Language

(a) (b) (c)


Types of Programming Language

(a)Low level language (b) Low level language (c) High level language
Types of Programming Language Paradigm

1. ?

2. ?

3. ?
Types of Programming Language Paradigm

1. Procedural Programming

2. Object-oriented Programming

3. Logic Programming
2.0 Approach in
Problem Solving
Steps in Problem Solving

1. ?
2. ?
3. ?
4. ?
5. ?
Steps in Problem Solving
Before developing the system:
1. Problem analysis *analyse the requirements of the problem

2. Design a solution *design algorithm : pseudocode & flowchart

After developing the system:


3. Implementation *coding

4. Testing *to ensure the program runs correctly and is error free

5. Documentation *description/facts about the program

*Need to understand the activities executed in each step


3.0 Design a Solution
Two types of algorithm

1. ?

2. ?
Two types of algorithm

1. Pseudocode

2. Flowchart
Two types of algorithm

(a) (b)
Two types of algorithm

(a) Pseudocode (b) Flowchart


Define/Explain Pseudocode
Define/Explain Pseudocode

Artificial, informal language used to develop algorithm, similar


to everyday English
Define/Explain Flowchart
Define/Explain Flowchart

A set of standard shaped boxes that are connected by flow


lines to represent an algorithm
Importance of Algorithm

1. ?
2. ?
3. ?
4. ?
Importance of Algorithm

1. As guide to write program


2. As a plan to solve problem
3. To detail out the requirement of the problem
4. To find the best solution
Types of Control Structure

1. ?
2. ?
3. ?
Types of Control Structure

1. Sequence
2. Selection
3. Repetition
Exercise
2. Identify the suitable type of control structure given in TABLE 1. [3 marks]
No Algorithm Control Structure
(a)

(b) Start
Read cent
ringgit = cent x 0.01
Print ringgit
Stop
(c)

25
Exercise
2. Identify the suitable type of control structure given in TABLE 1. [3 marks]
No Algorithm Control Structure
(a)

Selection

(b) Start
Read cent
ringgit = cent x 0.01
Print ringgit Sequence
Stop
(c)

Repetition

26
Sequence
Selection
Repetition
Flowchart Symbols- Name & Descriptions
for each control structure
4.1 Introduction to Java
Program
Structure of OOP consists of:

1. ?
2. ?
3. ?
Structure of OOP consists of:

1. Class
2. Object
3. Method
Structure of OOP consists of:

1. Class
- Class is a description of the properties (states) and the behaviors
(functionality) of one or more objects
Structure of OOP consists of:

2. Object
- entity that has both state and behavior.
Structure of OOP consists of:

3. Method
- Method is a collection of statements that perform some specific
tasks and return the result to the caller.

You might also like