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

This assignment requires you to write a C++ program that willcalculate monthly p

ID: 3609636 • Letter: T

Question

This assignment requires you to write a C++ program that willcalculate monthly paychecks for employees at a department store.The algorithm for determining the salary is described in example1-3 on page 18 of the Malik text. A text file contains the inputdata for the employees. The first line in the file contains thename and location of the store. You can input this line as a stringusing getline. Each of the following lines in the file containsinformation for one employee:

first name       last name         years ofservice                      base salary       monthlysales

Data items for employees are separated by blanks.

Notes:

Explanation / Answer

please rate - thanks #include #include #include using namespace std; void getfile(char[]); double calcbonus(int); double additional(int); double calcheck(int,double,double); void accumulate(int&,int&,double&,double,int); int main(){ string first,last,store ; char filename[30]; int count=0,high=0,years,base,sales; double bonus,addbonus,salary,check,total=0; ifstream in; ofstream out; getfile(filename); in.open(filename);          //open file   if(in.fail())            //is it ok?        { cout