Question: help using c++ mine is not working and i don't know why #include #include #include #include using namespace std; int main() { string lnA, fnA;

 help using c++ mine is not working and i don't know
why #include #include #include #include using namespace std; int main() { string
help using c++
mine is not working and i don't know why
#include
#include
#include
#include
using namespace std;
int main()
{
string lnA, fnA;
double salA, payA, SalaryA;
string lnB, fnB;
double salB, payB, SalaryB;
string lnC, fnC;
double salC, payC, SalaryC;
ifstream inFile;
ofstream outFile;
inFile.open("employeeSalary.txt");
outFile.open("employeeOutput.txt");
outFile
inFile >> lnA >> fnA >> salA >> payA;
inFile >> lnB >> fnB >> salB >> payB;
inFile >> lnC >> fnC >> salC >> payC;
SalaryA = salA + ((salA * payA) / 100);
SalaryB = salB + ((salB * payB) / 100);
SalaryC = salC + ((salC * payC) / 100);
outFile
outFile
outFile
inFile.close();
outFile.close();
return 0;
}
nsole Applications > ConsoleApplication5 Name Date modified Type Debug ConsoleApplication5.vcxproj B. ConsoleApplication5.vcxproj.filters ConsoleApplication5.vcxproj.user employeeOutput employeeSalary ++ Source.cpp 2/25/2021 8:05 PM 2/25/2021 5:12 PM 2/25/2021 5:12 PM 2/25/2021 5:00 PM 2/25/2021 8:07 PM 2/25/2021 6:04 PM 2/25/2021 8:05 PM File folder VC++ Project VC++ Project Filte... Per-User Project O... Text Document Text Document C++ Source employeeOutput - Notepad File Edit Format View Help Andrew Miller 69077.26 Sheila Green 80446.11 Amit Sethi 79469.43 employee Salary - Notepad File Edit Format View Help Miller Andrew 65787.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Three employees in a company are up for a special pay increase. You are a given a file, say employee Salary.txt, with the following data: Miller Andrew 65787.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employees'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, and first name is Andrew, the current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file employeeOutput.txt. For each employee, the data must be output in the following form: firstName lastName updatedSalar. Format the output of decimal numbers to two decimal places. Also, print the updated total salary of these three employees

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!