You are on page 1of 1

Question 1:

Mr. Matthews is generating a program to help him complete school orientation and registration for his
kindergarten. Mr. Matthews enters the student’s name, gender and birth year. Mr. Matthews has to
calculate the age of the potential student. Mr. Matthews would like to display the student’s name and
their age. If age is less than 3 years old Mr. Matthews will like to output, “Students is too young for
kindergarten.” If age is greater than 5 years of age, Mr. Matthews will like to display “Student is too old
for kindergarten.”

Please create an IPO Chart and the necessary pseudocode for this problem.
Once IPO Chart and Pseudocode has been generated please form a truth table where random values are
inputted for the various values and the different outputs are generated

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.

You might also like