You are on page 1of 3

NAME: Kurt Lyn Riño

SECTION: BSIT – 1/F3

ACTIVITY 1 & 2
Algorithms [IPO and Flowchart]

Example: Compute the area of a rectangle.


IPO Model:

Length Area =
INPUT PROCESS Length OUTPUT Area
Width * Width

Pseudo Code:
Start
Input Length, Width
Area = Length * Width
Print Area
End

Flowchart:

Start

Input Length,
Width

Area = Length * Width

Print Area

End
1. CONVERT FEET INTO METER
This program will accept measurement in feet and convert it into meter then display the result.

IPO Model:

INPUT Feet PROCESS Meter = Feet * 0.305 OUTPUT Meter

Pseudo Code:
Start
Input Feet
Meter = Feet * 0.305
Print Meter
End

Flowchart:

Start

Input Feet

Meter = Feet * 0.305

Print Meter

End

2. CONVERT PESO INTO DOLLAR


This program will accept value for peso and convert it into dollar then display the result.
Php 50.40 = $ 1

IPO Model:

Philippone Peso Dollar = Peso *


INPUT PROCESS OUTPUT Dollar ($)
(Php) Php 50.40

Pseudo Code:
Start
Input Philippine Peso (Php)
Convert Dollar = Peso * 50.40
Print Dollar ($)
End
Flowchart:

Start

Input Philippine
Peso (Php)

Dollar = Peso * 50.40

Print Dollar ($)

End

3. SALARY OF THE EMPLOYEE


This program will accept the number of hour’s work and rate per hour of the employee then
compute and display the gross salary of the employee.

IPO Model:

Number hour's Gross Salary = number


work Gross Salary of the
INPUT PROCESS hour's work * rate Per OUTPUT
Employee
Rate per hour Hour

Pseudo Code:
Start
Input Number hour’s work, Rate Per Hour
Gross Salary of the Employee = Number Hour’s of Work*Rate PerHour
Print Gross Salary of the Employee
End

Flowchart:

Start

Input Number
Hour’s work, Rate
Per Hour

Gross Salary of the Employee =


number Hour’s Work * Rate
PerHour

Print Gross Salary


of the Employee

End

You might also like