Lab Activity 2B PSPD
Lab Activity 2B PSPD
CLASS DDT1A
NAMA PENSYARAH PUAN NURHANI BT MOHD SABRI
JABATAN JABATAN TEKNOLOGI MAKLUMAT &
KOMUNIKASI
1
ACTIVITY 2B: Problem Solving Methods
Duration: 2 Hours
Learning Outcomes
This lab activity encompasses activities 2B.1, 2B.2, 2B.3, 2B.4 and 2B.5
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 analysis (define input, process and output)
Create a complete IPO chart
Activity 2B.1
Activity Outcome: System analysis (define input, process and output )
Duration : 20 minutes
You try to find out some exercises to identify input, process and output from real life application
as below:
Problem 1:
Below is the set of work flows of Auto Pay Machine for Parking Ticket. Select the appropriate
instruction to be place in the correct box by categorizing them into input, process and output
instructions. Highlight / underline your answer.
Set of Instructions:
1) Insert parking ticket ( input / process / output )
2) The payment will be calculated based on the duration ( input / process / output )
3) Parking fee will be displayed ( input / process / output )
4) Pay by notes or coins ( input / process / output )
5) Calculate the change for payment balance ( input / process / output )
6) Processed parking ticket ( input / process / output )
7) Verify amount of money inserted ( input / process / output )
11
Problem 2:
Below is the set of work flows of Course Registration for student. Select the appropriate instruction
to be place in the correct box by categorizing them into input, process and output instructions.
Highlight / underline your answer.
Set of Instructions:
1) Save selected class for course registration in the database ( input / process / output )
2) Course registration slip display at the screen ( input / process / output )
3) Select course for registration ( input / process / output )
4) Printed course registration slip ( input / process / output )
5) Enter your ID and password ( input / process / output )
6) System will validate your ID and password ( input / process / output )
7) Select the class that offer the course selected before ( input / process / output )
8) Save selected course registration in the database ( input / process / output )
Activity 2B.2
Activity Outcome: System analysis (Identify input, process and output)
Duration : 45 minutes
You do some research on defining input, process and output for certain problem as examples
below:
You try some exercise to get more understanding about defining input, process and output as
below:
Problem 1: Input:
To buy the books from the book shop, 1.price of books
cashier will scan the price of the books and 2.quantity of the books
quantity of the book. Then the system will
calculate the total price of the books. Process :
calculate the total price of the book
and quantity of the book
Output :
print out the total price of the book
12
Problem 2: Input:
Aiman wants to know his BMI. His weight is weight and height
calculated in kilogram and height is
calculated in meter. Help Aiman to find his Process :
calculate BMI by weight /(height height)
BMI.
Output :
BMI
Problem 3: Input: total price
To rent a video, customer need to scan the
video serial number at our shop scanner and
the details of the video will be save in the Process :
system automatically. Next, the scanner will System save the details
print out the details about the video rental.
Lastly, the customer needs to go to counter
and pay for the rental fee. Output : 1.printed details of the video
2.receipt for rental fees
Problem 4: Input: payment
Every employee needs to thumb their thumb fingerprint
fingerprint everyday as proof of their daily
attendance to the work. Then the Process :
attendance system will save the employee
1) system will save wmployee information
information such as name, time and date.
2)record the attended day
The information can be printed out at the
end of the month. Output :
report staff attendence
Problem 5: Input: price 5 purchased item, moneytendered
Create a receipt for a list of five (5)
purchased items. Print the total price,
compute the total with 8.25% tax and print Process :1)calculatetotalprice=priceitem1+ priceitem
the money tendered (plus any change
given). priceitem3+priceiem4+priceitem5
2)calculate tax=(8.25/100)*totalprice
3)calculate nettprice=totalprice+tax
Output :4)calculate change=nettprice-moneytender
Display total price ,nettprice,
change
Problem 6: Input:
You have been hired by Prima Hotel as a room rate and number of days
programmer. Your task is to develop a
program that can count the total rate by
multiply room rate with number of days, and Process :
1)calculate rate=room rate+number of da
add 10% room service charges. Draw the
flowchart by using the problem analysis 2)calculate room service=rate* 10%
below. 3)calculate total price= total rate+ room
service charge
Output :
total rate
13
Problem 7: Input:
Mr Wong is a mathematics teacher. He
hours
wants to teach his students about how to
convert time in hour into the times in minute. Process :
Help Mr Wong to solve his problem. minutes= hour *
60
Output :
minutes
Activity 2B.3
Activity Outcome: System analysis (Identify input, process and output )
Duration : 15 minutes
Define input, process and output for module manage staff payroll.
14
Activity 2B.4
Activity Outcome: create a complete IPO chart
Duration : 25 minutes
Cik Suria wants you to summarize your input, process and output into IPO chart. You do some
research on IPO chart as examples below:
IPO chart:
IPO chart :
You try some exercise to get more understanding about IPO chart as below:
Problem 2:
Aiman wants to know his BMI. His
weight is calculated in kilogram
and height is calculated in meter.
Help Aiman to find his BMI.
15
Problem 3:
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.
Activity 2B.5
Activity Outcome: create a complete IPO chart
Duration : 15 minutes
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 basic salary, allowance, overtime, income tax and loan
deduction. The system will automatically calculate the gross salary, total deduction
and net salary for the employee.
IPO chart :
16