ACTIVITY 2D: Problem Solving Methods: Learning Outcomes
ACTIVITY 2D: Problem Solving Methods: Learning Outcomes
ACTIVITY 2D: Problem Solving Methods: Learning Outcomes
Duration: 2 Hours
Learning Outcomes
This lab activity encompasses activities 2D.1, 2D.2, 2D.3 and 2D.4
CASE STUDY
Infinity Design Solution Sdn. Bhd, an advertising company wants to automate the system of managing Human
Resources (HR) data. Cik Suria was selected to be an IT programmer for Infinity Design Solution. En. Mohamed
insist to develop a system to manage staff payroll. Cik Suria has to prepare a proposal for payroll system.
INSTRUCTION:
1. You have been assigned to help Cik Suria to prepare a proposal which include:
System design (flow chart )
Activity 2D.1
Activity Outcome: System design (flow chart )
Duration : 30 minutes
Cik Suria propose the algorithm and pseudo En. Muhammed. En. Muhammed wants to convert the algorithm or
pseudo code into flow chart. Cik Suria ask you to proceed with system design and try to convert algorithm and
pseudo code into flow chart. You do some research on flow chart as examples below:
PROBLEM DESIGN
PROBLEM PROBLEM DESIGN (FLOW CHART)
(ALGORITHM)
Problem 1: 1. Enter 3 numbers
Calculate total of 2. Calculate total of three Start
three numbers numbers
3. Display total of three
numbers num1, num2, num3
display total
End
display age
End
You try some exercise to get more understanding about algorithm as below:
Problem 2:
Every employee needs to thumb their fingerprint
everyday as proof of their daily attendance to the
work. Then the attendance system will save the
employee information such as name, time and date.
The information can be printed out at the end of the
month.
Problem 3:
To buy the books from the book shop, cashier will
scan the price of the books and quantity of the book.
Then the system will calculate the total price of the
books.
Problem 4:
Aiman wants to know his BMI. His weight is
calculated in kilogram and height is calculated in
meter. Help Aiman to find his BMI.
Problem 5:
Create a receipt for a list of five (5) purchased items.
Print the total price, compute the total with 8.25%
tax and print the money tendered (plus any change
given).
Problem 6:
You have been hired by Prima Hotel as a
programmer. Your task is to develop a program that
can count the total rate by multiply room rate with
number of days, and add 10% room service charges.
Draw the flowchart by using the problem analysis
below.
Problem 7:
Mr Wong is a mathematics teacher. He wants to
teach his students about how to convert time in hour
into the times in minute. Help Mr Wong to solve his
problem by construct a flowchart.
Activity 2D.2
Activity Outcome: System design (algorithm, pseudo code and flow chart )
Duration : 30 minutes
After study about algorithm, Cik Suria wants you to you do some exercise on converting between algorithm,
pseudo code and flow chart.
1) Input meter
2) Convert meter to kilometer
2.1) kilometer = meter * 1000
3) Display kilometer
START
Set Total = 0, Average = 0;
Input quiz1, quiz2, quiz3;
Calculate Total
Total = quiz1 + quiz2 + quiz3;
Calculate Average
Average = Total / 3;
Display Average;
END
START
START
Input
item_price
END
PROBLEM
Case Senario:
The system will automate the process of calculate payroll for employees worked at Infinity Design Solution Sdn. Bhd.
Each employee will be recognized by employee ID. The system will receive gross income, allowance, overtime, income
tax and loan deduction. The system will automatically calculate the total income, total deduction and net salary for the
employee.
FLOW CHART
Activity 2D.4
Activity Outcome: Develop flowchart using problem solving tools (Raptor).
Duration : 45 minutes
Cik Suria just realizes that instead of using Microsoft Word to develop flow chart, you can use Raptor tools to
develop flow chart more easily. You do some research on Raptor tools and try to develop all flow chart in Lab
2D.1, 2D.2 and 2D.3 by using Raptor tools.