Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The trustees of a small college are considering voting a pay raise for their 12

ID: 3660006 • Letter: T

Question

The trustees of a small college are considering voting a pay raise for their 12 faculty members. They want to grant a 2.5-percent pay raise; however, before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member and the total amount of the raises. Also, print the total faculty payroll before and after the raise. Test your function for the salaries: $52,500 $64,029.50 $56,000 $53,250 $65,500 $42,800 $45,000.50 $68,900 $53,780 $77,300 $84,120.25 $64,100 4. Redo Programming Project 3 assuming that faculty members earning less than $50,000 receive a 3-percent raise, those earning more than $70,000 receive a 3.5-percent raise, and all others receive a 2.5-percent raise. For each faculty member, print the raise percentage as well as the amount. (I have to create a program for both)Please do it readable! (Not arrays ,no vector) Salary Raise Report 1 No. Salary Rate Raise New Salary ---------------------------------------------- 1 52500.00 2.5 1312.50 53812.50 2 65500.00 2.5 1637.50 67137.50 3 53780.00 2.5 1344.50 55124.50 4 64029.50 2.5 1600.74 65630.24 5 42800.00 2.5 1070.00 43870.00 6 77300.00 2.5 1932.50 79232.50 7 56000.00 2.5 1400.00 57400.00 8 45000.50 2.5 1125.01 46125.51 9 84120.25 2.5 2103.01 86223.26 10 53250.00 2.5 1331.25 54581.25 11 68900.00 2.5 1722.50 70622.50 12 64100.00 2.5 1602.50 65702.50 Totals 727280.25 18182.01 745462.26 Salary Raise Report 2 No. Salary Rate Raise New Salary ---------------------------------------------- 1 52500.00 2.5 1312.50 53812.50 2 65500.00 2.5 1637.50 67137.50 3 53780.00 2.5 1344.50 55124.50 4 64029.50 2.5 1600.74 65630.24 5 42800.00 3.0 1284.00 44084.00 6 77300.00 3.5 2705.50 80005.50 7 56000.00 2.5 1400.00 57400.00 8 45000.50 3.0 1350.02 46350.51 9 84120.25 3.5 2944.21 87064.46 10 53250.00 2.5 1331.25 54581.25 11 68900.00 2.5 1722.50 70622.50 12 64100.00 2.5 1602.50 65702.50 Totals 727280.25 20235.21 747515.46 Press any key to end

Explanation / Answer

#include #include using namespace std; void calcRaise1(double &salary,double &raise,double &pct); void calcRaise2(double &salary,double &raise,double &pct); int main(){ const int SIZE=12; double f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;//faculty double r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12;//raise double p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12;//pct double ftot,rtot,total; //set output precision cout