Write a C++ program that asks the user to store the basic salaries of 50 employees in a 1-D array called Salaries and their overtime hours in a 1-D array called OvertimeHours (5 points). Each employee will be paid $30 for each overtime hour. The program should call a functions to do each of the following:
· Store in an array called finalSalaries the final salaries of the 50 employees. An employee’s final salary is computed as the sum of the basic salary and the earned overtime payments. Also note that a 4% income tax is deducted from the computed final salary. (5 points).
· Output an ascending sorted list of the employees’ final salaries. (5 points).
· Increase by 2% the basic salaries of the employees who worked for more than 10 overtime hours. (5 points).
Write a C++ program to calculate the total marks of each student of a class. This class takes the
following subjects Physics, Chemistry and Mathematics. Your program shall be able to calculate the
total marks for each student, this is the sum of marks from the three subjects
Given N and need print the pattern given below
input:
N = 5
output :
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
Write a program to input name, roll number and marks in 5 subjects for n number of students using structure. Write functions to: -
a. Find total marks and percentage of all n students.
b. Display details of a student with a given roll number.
c. Display the details for all the students having percentage in a given
range.
d. Sort the array in ascending order of marks.
a) Formulate a linear programming model for this problem. EV (10marks)
b) Use solver to find optimal solution and sensitivity report. CR (5marks)
c) Management have asked you to determine the optimal solution. Write your answer in a form of a report to be submitted to the management. AN (5marks)
Advice the management about objective function value corresponding to your answer in (b).