Write a C++ program that asks the user to store the bonus received by 50 employees in a 1-D array called Bonus. The bonus of each employee was calculated as being 5% of the monthly salary of each employee (you need to input the monthly salary for each employee from the screen and compute the bonus received before being stored in the array). The program should call a function to do each of the following:   ·       Output a descending sorted list of the employees’ bonuses.  ·       Increase by 5% the bonus of the employees if the amount of the bonus is < $1,000 and by 3% if it is >= $1,000. Output the new values of the bonuses after the increase

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question

Write a C++ program that asks the user to store the bonus received by 50 employees in a 1-D array called Bonus. The bonus of each employee was calculated as being 5% of the monthly salary of each employee (you need to input the monthly salary for each employee from the screen and compute the bonus received before being stored in the array). The program should call a function to do each of the following:

 

·       Output a descending sorted list of the employees’ bonuses. 

·       Increase by 5% the bonus of the employees if the amount of the bonus is < $1,000 and by 3% if it is >= $1,000. Output the new values of the bonuses after the increase. 

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning