Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create asequentialdata file named company.txtthat contains information about a companys employees and their salaries. For example, 34 Bob 528.50 26 Marie 1321.20 78 Tim 470.65
Create asequentialdata file named company.txtthat contains information about a companys employees and their salaries.
For example,
34
Bob
528.50
26
Marie
1321.20
78
Tim
470.65
18
Ellen
5600.00
66
Jim
3642.65
37
Cathy
5600.00
The file records have the following structure:
Employees ID (an integer)
Employees name (Up to 20 characters)
Employee s salary (a double)
Your program should also do the following:
Readthe file tofind and display the lowest salary.Implement all the necessary error checking to earn full grades.
Create aRandomAccessfileincrease.txt to store the ids of the employees and their proposed increased salaries. Increase salaries as follows:
The employee(s) having the lowest salary should have a 15% salary increase.
All other employees should have a 10% salary increase.
c++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started