Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increased their production this year over last year so that she can issue them certificates of commendation and bonuses. Design a flowchart or pseudo code 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. Th e bonuses will be distributed as follows:
If this year's production is greater than last year's production and this year's production is:
• 1,000 units or fewer, the bonus is $25
• 1,001 to 3,000 units, the bonus is $50
• 3,001 to 6,000 units, the bonus is $100
• 6,001 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 this year than last year.
• Sixty percent of employees produce over 6,000 units per year; 20 percent produce 3,001 to 6,000 units; 15 percent produce 1,001 to 3,000 units; and only 5 percent produce fewer than 1,001 units.
10. In many programming languages you can generate a random number between 1 and a limiting value named LIMIT by using a statement similar to random Number = random(LIMIT). Create the logic for a guessing game in which the application generates a random number and the player tries to guess it. Display a message indicating whether the player's guess was correct, too high, or too low.
(After you finish Chapter 4, you will be able to modify the application so that the user can continue to guess until the correct answer is entered.)