1

Special Pay Increase Problem (Id-1530)

Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018]

Program ID- 1530

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%.

Input Format:
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

Output Format:
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

Code

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>

C++ Code 

The Above Codes are for reference only. It doesn't mean everyone to directly copy/paste those codes.

 

Click Here to Leave a Comment Below 1 comments
MK - November 8, 2018

YEUP. This works perfectly fine *thumbs up




0



0

Reply

Leave a Reply:

This site uses cookies and by using the site you are consenting to this.