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
…
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>
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
…
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>
Code: C++
NOTE: The Above Codes are for reference only. It doesn't mean everyone to directly copy/paste those codes.
thank you for sharing nice article
ReplyDeletevisit
web programming tutorial
welookups