Write a C program that calculates the employee salary and print the information as follows: 1- Your program should first ask the user to enter the basic salary and the extra working hours. 2- Your...


Write a C program that calculates the employee salary and print the information as<br>follows:<br>1- Your program should first ask the user to enter the basic salary and the extra<br>working hours.<br>2- Your program should then read the price of each extra hour and tax rate from a<br>file called salary_info.txt.<br>3- Your program should then calculate the gross salary using the following formula:<br>Gross price = (basic salary + number of extra working hours * extra<br>working hour cost) – (basic salary * tax rate);<br>4- Your program should also ask the user if he is joining any medical insurance, if<br>yes then you ask him how much is the insurance cost and subtract it from the<br>gross salary.<br>And print the gross salary and the details of the salary (number of extra hours and<br>insurance cost)<br>Your program should include at least two functions:<br>1- Function calculate_salary which takes the basic salary, number of extra<br>working hours, extra hours cost, and the insurance cost and returns the total<br>salary.<br>2- Function print_salary_info which takes the gross salary, number of extra<br>working hours, and insurance cost as parameters and prints them to the screen.<br>

Extracted text: Write a C program that calculates the employee salary and print the information as follows: 1- Your program should first ask the user to enter the basic salary and the extra working hours. 2- Your program should then read the price of each extra hour and tax rate from a file called salary_info.txt. 3- Your program should then calculate the gross salary using the following formula: Gross price = (basic salary + number of extra working hours * extra working hour cost) – (basic salary * tax rate); 4- Your program should also ask the user if he is joining any medical insurance, if yes then you ask him how much is the insurance cost and subtract it from the gross salary. And print the gross salary and the details of the salary (number of extra hours and insurance cost) Your program should include at least two functions: 1- Function calculate_salary which takes the basic salary, number of extra working hours, extra hours cost, and the insurance cost and returns the total salary. 2- Function print_salary_info which takes the gross salary, number of extra working hours, and insurance cost as parameters and prints them to the screen.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here