Question: Language of implementation is C++ Write a program for calculating the weekly salary for the employees of a company. The company currently has 3 employees
Language of implementation is C++ Write a program for calculating the weekly salary for the employees of a company. The company currently has 3 employees (Carla, Steve, and Bob) but intends to expand soon to have 20 employees. Every employee has a unique ID in the range 101 120. Employees Carla, Steve, and Bob have been assigned 101, 102, and 103 respectively. Their hourly pay rates are $14, $12, and $15. You will demonstrate your program under changing scenarios for a two week period in the life of the company as follows. a. Your program must store the information about employee names, ids, pay rate, hours worked, and the total weekly salary using five different arrays. b. The program must ask the user for the hours worked by each employee and use this information to calculate the weekly salary. c. Display the id, name, pay rate, hours worked, and the weekly salary in a suitable format. d. At the start of the second week, new employees Rachael and Adam are hired with rates at $10.50. e. Give Carla a raise to $14.50. f. Steve quits his job. Hint: You must compact the arrays to avoid wastage of space. g. For the second week repeat steps b and c and display your results in the same format used earlier. I'm confused on how to start this but I do know I need to create an array. I think part f, compact the arrays, is one of the bigger things throwing me off.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
