Write a C++ program in Microsoft Visual Studio 2017, 2019 or 2022 that reads employee information from a text file named employees.txt and extract corresponding/matching gross monthly salaries (matched with unique employment number) from a file called salaries.txt.
The programme should then print the employment number, employee surname, employee name, gross monthly salary, monthly tax and net monthly salary for each employee to a file called report.txt in alphabetical order by surname then name.
You are encouraged to write functions and call them in the main function.
int main()
{
string employee;
int grosssalary;
int montax;
int netmonsalary;
cin >> employee;
cin >> grosssalary;
cin >> montax;
cin >> netmonsalary;
}
Comments
Leave a comment