Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C Programming Questions Lab Tutorial 3 Write a program with user defined functions to calculate the cost to a company for a proposed raise. The
C Programming Questions
Lab Tutorial 3 Write a program with user defined functions to calculate the cost to a company for a proposed raise. The program prompts for the number of employees and each employee's salary, and then calculates the individual raise and the total cost of raises. Employees earning $25,000 or less will receive a 5% raise. Employees earning between $25,001 and $35,000 will receive a 4% raise. Employees earning $35,001 or greater will receive a 3% raise. Display each employee's raise and the total raises. Sample Output Enter the number of employees: 4 Enter the salary for employee 1: 18600 Employee 1 receives a raise of $930.00 Enter the salary for employee 2: 24685 Employee 2 receives a raise of $1234.25 Enter the salary for employee 3: 32000 Employee 3 receives a raise of $1280.00 Enter the salary for employee 4: 48000 Employee 4 receives a raise of $1440.00 The total cost of raises: $4884.25 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started