Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the program in C++ Write a program to process employee pay increases. The data will be in a file with the following format: Employee_name

write the program in C++

Write a program to process employee pay increases. The data will be in a file with the following format:

Employee_name current_salary percent_increase

Here is a sample file:

Miller,Andrew 63700 5.5

Green,Shelia 55025.75 6.2

Note that there must be NO SPACES in the employee name. You will be able to read using >>.

Your program will ask for the name of the file to process, and the name of the output file. Read the employee name, current salary, and increase. Calculate the new pay and write to an output file with employee name and new salary. Format the numbers to display 2 decimal places. Your output file should be formatted as shown below:

(output for the input file shown above)

Salary Increase Report

Employee New Salary

Miller,Andrew $67203.50

Green,Shelia $58437.35

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Explain franchising and how this form of business ownership works.

Answered: 1 week ago