You are on page 1of 3

NAME: RIÑO, KURT LYN

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:

INPUT PhilippinePeso(Php) PROCESS Dollar=Peso*Php50.40 OUTPUT Dollar($)

Pseudo Code:
Start
Input PhilippinePeso(Php)
Convert Dollar=Peso*Php50.40
Print Dollar($)
End
Flowchart:

Start

Input
PhilippinePeso(Php)

Dollar=Peso*Php50.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:

NumberOfHour'sWork GrossSalary=NumbeOf
INPUT PROCESS OUTPUT GrossSalary
RatePerHour Hour'sWork*RatePerHour

Pseudo Code:
Start
Input NumberOfHour’sWork, RatePerHour
GrossSalary=NumberOfHour’sWork*RatePerHour
Print GrossSalary
End

Flowchart:

Start

Input Number
Hour’sOfWork,
RatePerHour

GrossSalary=NumberOfHour’s
Work*RatePerHour

Print GrossSalary

End

You might also like