0% found this document useful (0 votes)
2 views

Group Work Assignment

The document outlines a group work assignment for a C++ program to manage employee information for ABC Company, which has ten employees. It specifies the creation of components for accepting employee data, calculating net salary, storing information in a file, and displaying records, along with necessary functions and data structures. Additionally, it provides a detailed income tax calculation formula based on gross salary ranges.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Group Work Assignment

The document outlines a group work assignment for a C++ program to manage employee information for ABC Company, which has ten employees. It specifies the creation of components for accepting employee data, calculating net salary, storing information in a file, and displaying records, along with necessary functions and data structures. Additionally, it provides a detailed income tax calculation formula based on gross salary ranges.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Group Work Assignment (Maximum of Five Students)

1. ABC Company has ten (10) employees. The company wants to store employee
information such as First Name, Last Name, Age, Gender, Gross Salary, Position, and
Years of Experience into a file named EmployeeInfo.txt. You are required to write a C++
program that accomplishes this task. The task should be divided into independent
components, including:
❖ A component to accept employee information from the user.
❖ A component to calculate the net salary based on the given gross salary by
deducting pension and income tax.
❖ A component to store the information into a file.
❖ A component to display the employee information stored from the file.
To implement the above components independently, you should create at least four functions:
❖ AcceptEmployeeInfo to accept information from the user.
❖ CalculateTax to calculate the deductible income tax based on the following formula.
❖ SaveInfo to store the information in a file.
❖ DisplayInfo to display a particular record from the file.
Additional Instructions:
❖ To store employee information, use a structure called Employee that consists of the
above data members, and make it an array of structures following the appropriate rules.
❖ Implement a combination of looping statements, functions, file handling, pointers, arrays,
and object-oriented programming (OOP) concepts.
❖ Apply necessary file manipulation functions to store and retrieve information from the
file.
Income Tax Calculation Formula:
❖ If the gross salary is less than 1500, the net salary = gross salary - 5% of gross salary.
❖ If the gross salary is less than 3500, the net salary = gross salary - 10% of gross
salary.
❖ If the gross salary is less than 5500, the net salary = gross salary - 15% of gross
salary.
❖ If the gross salary is less than 7500, the net salary = gross salary - 20% of gross
salary.
❖ If the gross salary is less than 9000, the net salary = gross salary - 25% of gross
salary.
❖ If the gross salary is less than 10500, the net salary = gross salary - 30% of gross
salary.
❖ If the gross salary is greater than 11500, the net salary = gross salary - 35% of gross
salary.
Due Date: Before the end of the class.

You might also like