Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in standard C++. Do not use C++11, C++14, or C++17 features. Write a program that will read records from a file (create your

Please code in standard C++. Do not use C++11, C++14, or C++17 features.

Write a program that will read records from a file (create your data file by using data from sample below) and store them in a binary file. That file will then be used as input to create an output file of the information. The data file contains employee information consisting of name, social security, department ID, years employed, and salary. In addition to displaying the information of each record, the program will also calculate the average salary and years employed of all the records. This additional information is stored in the same output file.

image text in transcribed

Sample Data File Bill Tarpon 182460678 789 8 30600 Fred Caldron 456905434 789 10 40700 Sally Bender 2039322397908 50000 David Kemp 5689034937909 60000 The output file should look like this Name Social Security Department ID Years Employed Salary Bill Tarpon 182460678 Fred Caldron 456905434 Sally Bender 203932239 David Kep568903493 789 789 790 790 30600. 00 40700. 00 50000. 00 60000. 00 10 The average number of years employed is 8 The average salary is $45325.00

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago