Question: Problem Write a C program that calculates the total salary, total age and the bonus of a company. The program's design should use only the


Problem Write a C program that calculates the total salary, total age and the bonus of a company. The program's design should use only the main function. The expected output should contain your name, your CS 159 section number and your ID as shown in the sample output. In the program, for loop, do/while loop and else statement cannot be used. The main function should run successfully with different scenarios. The main function should perform the following: Prompt the user to enter the age and the gender of four employees by using a while loop. The main function should then calculate and print the average age of female employees, the average age of male employees who and the total age of all employees. (35 points) Prompt the user to enter the salary of four employees by using a while loop. The main function then calculates and prints the total salary after applying the following deduction. (30 points) Deduction 3% Salary of an employee >=1000 and =2500 and 4000 and =2500 and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
