Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve this question .. i need the function because i a want to put it in the cases . Create a comprehensive C program

Please solve this question .. i need the function because i a want to put it in the cases .
image text in transcribed
Create a comprehensive C program that reads data from a file containing information about employees some company unknowable staff count. Employee Full Name. Employee ID, Address, Educational Level, Social Status, Number of Chilled, Employee Basic Wage, and number of overtime hours per month. The program should do the following: - Using the concept of Parallel Array, create recand of employee using the above attributes. (You can use Struct to do this option) - The created attributes must have new attribute refors to bomus Salary for Employee, the bonus salary depends on the following roles: If the amount of overtime hours is less than a quarter of the total mumber of hours worked, the hourly wage is 58 . A wage of $12 per hour is paid if the number of overtime hours is greater than a quarter but less than half of the total mumber of hours worked. If the employee work more than half of original work hours, the wage per hour is 155. - Update the records of each employee by adding bomus salary based on above equation. - The User required to Input File Name to read information from the file, you must declare an array of chars to receive name of file, which will be used in the read and write to file funcrions. - Read the data from the file and store it in recard for employees, which has IDs, Names, and Salaries. The ID should be declared as integer, full name of type string (array of characters) and the salary as double. Assume that the maximum length of full name of any employee is 50 characters. - Calculate the Total Salary based on the following. If the Employee Married he will got 355 for his family, and 15$5 for each child. (this wage refer to Others in equation). Total Salary = base Salary + bonus salary+ others. Hint: read form file, ealculate the nutal salary , and store it in the sesond before goine to the next step. - Display the following menu to the user: Upload record for new Employee press . Sort the Employees based on Empld press 1. Sort the Employee info based on basic salary press 2. Sort the employee info based on total salary press3. Sort the employee info based on first name press 4 To display total salary for employee based on id press 5. To find the average salary for all employee press6. To find the average salary for Male Employee press7. To find the average salary for female press\&. To exit press 9. The program should keep displaying the menu until the user selects to exit from the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

For the circuit in Prob. 8.5, find i and v for t > 0.

Answered: 1 week ago