Display each employee with a message indicating whether the


Problem

Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increased their production this year over last year. These employees will receive certificates of commendation and bonuses. Design a flow chart or pseudocode for the following:

a. A program that continuously accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced. Display each employee with a message indicating whether the employee's production has increased over last year's production.

b. A program that accepts each worker's data and displays the name and a bonus amount. The bonuses will be distributed as follows:

If this year's production is greater than last year's production and this year's production is:

• 1000 units or fewer, the bonus is $25.

• 1001 to 3000 units, the bonus is $50.

• 3001 to 6000 units, the bonus is $100.

• 6001 units and up, the bonus is $200.

c. Modify Exercise 9b to reflect the following new facts, and have the program execute as efficiently as possible:

• Thirty percent of employees have greater production rates this year than last year.

• Sixty percent of employees produce over 6000 units per year; 20 percent produce 3001 to 6000; 15 percent produce 1001 to 3000 units; and only 5 percent produce fewer than 1001.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Display each employee with a message indicating whether the
Reference No:- TGS02647021

Expected delivery within 24 Hours