Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DESCRIPTION Three employees in a company are up for a special pay increase Create a file named salaryInfo.txt that has data in the following format

image text in transcribed
DESCRIPTION Three employees in a company are up for a special pay increase Create a file named salaryInfo.txt that has data in the following format (but with different names and values) Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee's last name, first name, current salary, and percent pay increase For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is $65,789.87, and the pay increase is 5% (or 0.05). Write a program that reads data from a specified file and stores the output in a new file. For each employee, the data must be output to a new file named salaryUpdated.txt in the following form: lastName firstName updatedsalary. Format the numerical output to two decimal places One example txt file needed for this problem is attached Your code should not only work for this particular txt file, but also for any 3 line txt file in this format and named salaryinfo ixt Create multiple txt files to be used to test your code (rename them to salaryinfo.txt to test them) Make them only 3 lines in length and similar in format to the example txt file Rework your code as needed Name your source code file RaiseCalculator.cpp Upload your test files (renamed as necessary) for your program to read, your.cpp file, and a short paragraph explaining the results of your test and it/how you changed your code after the tests. Remember to review the coding standard checklist before submitting, use the Style Checker and document your code with comments

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions