Answer to Question #314458 in C++ for Sihle

Question #314458

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.





1
Expert's answer
2022-03-19T12:25:01-0400
int main()
{
	string employee;
	int grosssalary;
	int montax;
	int netmonsalary;
	cin >> employee;
	cin >> grosssalary;
	cin >> montax;
	cin >> netmonsalary;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog