Write a C program that calculates the employee salary and print the information as follows: - Your program should finst ask the user to enter the basic salary and the extra working hours 2. Your program should then read the price of cach extra hour and tax rate from a file called salary_info.tst. 3. Your program should then caleulate the gross salary using the following formula: Gross price (basic salary + number of extra working hours extre working hour cost) -(hasic 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: I- Function caleulate_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.
Write a C program that calculates the employee salary and print the information as follows: - Your program should finst ask the user to enter the basic salary and the extra working hours 2. Your program should then read the price of cach extra hour and tax rate from a file called salary_info.tst. 3. Your program should then caleulate the gross salary using the following formula: Gross price (basic salary + number of extra working hours extre working hour cost) -(hasic 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: I- Function caleulate_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.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,