You are on page 1of 1

Question 2:

Ms. Diane is the manager of Starbucks Maraval. She is required to


complete salaries for all employees monthly. Ms. Diane will like to print
a payslip which will state the employee’s name, their base salary, their
deductions (NIS, Health Surcharge) and their take home salary. Base
salary is calculated using the formula Base Salary = $22.50 * no. of
hours worked for month. NIS has a fixed value of $285.00 Health
surcharge is calculated using the formula health surcharge = 8.25 * No.
Of Mondays in the present month. Take home salary is calculated using
the formula, Take home salary = base salary – Deductions. Deductions
is equivalent to NIS + Health Surcharge. If take home salary is <
$4000.00 Ms. Diane will like to output “You will be paid in cash!” If take
home salary is > $4000.00 Ms. Diane will like to output “You will be
paid via personal cheque!”

Design an IPO Chart and the corresponding pseudocode.


Once generated, please completed a truth table using random data, to
generate feedback.

I P O

You might also like