Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. 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

image text in transcribed

4. 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 where, 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) calculate the bonus by multiplying the salary by 10% 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 (2) constant data values in C syntax based on the scenario given. (4 marks) C. Recommend any four (4) approaches to improve to flowchart design for Company A's bonus payment problem. (8 marks) More or equal to 5 years Bonus = Salary * 0.10 Bonus = Salary*0.20 Display Bonus 5. Illustrate the expected flow chart 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 cuppa each cost 75 cents and RM1.20 respectively. The program then calculates and displays the total price of each customer order received. (10 marks) 4. 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 where, 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) calculate the bonus by multiplying the salary by 10% 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 (2) constant data values in C syntax based on the scenario given. (4 marks) C. Recommend any four (4) approaches to improve to flowchart design for Company A's bonus payment problem. (8 marks) More or equal to 5 years Bonus = Salary * 0.10 Bonus = Salary*0.20 Display Bonus 5. Illustrate the expected flow chart 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 cuppa each cost 75 cents and RM1.20 respectively. The program then calculates and displays the total price of each customer order received. (10 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions