Read the scenario of Company A's bonus payment problem below to answer the questions.
Employees at Company A receive an annual bonus based on the number of working years with the company. Only a full-time employee is entitled to a bonus payment. An employee working less than 5 years receives a 10% bonus, while others receive a 20% annual bonus calculated from the salary.
a.
Create the pseudocode statements for the annual bonus payment at Company A by referring to code snippets given below. (10 marks)
if (the years employed are greater than or equal to 5)
print the bonus
enter the salary and years employed
repeat for (each employee)
if (full-time staff)
Online Quiz - C Programming
Duration: 1 hour and 30 minutes
b.
Express any two constant data values in C syntax based on the scenario given. (4 marks)
c.
Recommend any four approaches to improve the flowchart design for Company A's bonus payment problem. (8 marks)
More or equal to 5 years
Bonus =
Bonus = Salary * 0.10
Salary * 0.20
Display Bonus
5.
Illustrate the expected flowchart of a program that accepts a series of customer orders at a local coffeehouse. At the coffeehouse, bagels that are sold cost 99 cents each, while donuts and a cup of coffee each cost 75 cents and RM1.20.
Customer order received. (10 marks)