Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

for this particular program how do i create the input innotepad 1st ? #include <

ID: 3613769 • Letter: F

Question

for this particular program how do i create the input innotepad 1st ? #include <iostream>

#include <fstream>

#include <iomanip>

#include <string>

using namespace std;

int main()

{

ifstream inFile;

ofstream outFile;

double currentSalary=0, updatedSalary, payIncrease=0;

string firstName;

string lastName;

inFile.open("Ch3_Ex6Data.txt");

outFile.open("Ch3_Ex6Output.txt");

cout<<fixed<<showpoint<<setprecision(2);

//First Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

//Second Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

//Third Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

inFile.close();

outFile.close();
system("PAUSE")
return 0;
}

for this particular program how do i create the input innotepad 1st ? #include <iostream>

#include <fstream>

#include <iomanip>

#include <string>

using namespace std;

int main()

{

ifstream inFile;

ofstream outFile;

double currentSalary=0, updatedSalary, payIncrease=0;

string firstName;

string lastName;

inFile.open("Ch3_Ex6Data.txt");

outFile.open("Ch3_Ex6Output.txt");

cout<<fixed<<showpoint<<setprecision(2);

//First Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

//Second Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

//Third Employee

inFile>>lastName>>firstName>>currentSalary>>payIncrease;

updatedSalary = currentSalary * (1+(payIncrease*0.01));

outFile<< firstName<< " "<< lastName<< ""<< updatedSalary<< endl;

inFile.close();

outFile.close();
system("PAUSE")
return 0;
}

Explanation / Answer

please rate - thanks open notepad type in data for multiple employees, 1 per line example John Dow 30000 25 Jane Eyre 25000 15 when finished click File     Save As type in Ch3_Ex6Data for the file name .txt will be added automatically. nothing has to be done to create the output file