Answered step by step
Verified Expert Solution
Link Copied!

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

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

Step: 3

blur-text-image

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago