Special Pay Increase Problem (Id-1530)
Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018]
Employees in a company are up for a special pay increase. Given a file, with each line consisting of an employee’s last name, first name, current salary, and percent pay increase, write a C++ program to compute the revised pay of each employee.
Miller Andrew 65875.87 5
Green Sheila 75892.56 6
Sethi Amit 74900.50 6.1.
For example, the pay increase for Andrew is 5%.
Name of the input file
The input file contains
last name, first name, salary and percentage of increase for employee1
last name, first name, salary and percentage of increase for employee2
last name, first name, salary and percentage of increase for employeen
last name, first name, updadated salary of employee1 separated by a tab
last name, first name, updadated salary of employee2 separated by a tab
last name, first name, updadated salary of employee3 separated by a tab
Please Comment Working if the code worked to you
If you have other working codes please comment the codes enclosing with <pre> and </pre> 🙂
Example: <pre> Your Code </pre>
void employee::get(ifstream &temp)