Question
Write a C++ program that will read from an input text file and write to an output file. input File is : Name of the
Write a C++ program that will read from an input text file and write to an output file.
input File is :
Name of the Employee: John Snow
Name of the Supervisor: Bart Simpson
Employee ID #: 9875
Telephone Number: (123)456-7890
Address: 123 Main Street
Fall Semester Evaluation: 90.00
Spring Semester Evaluation: 80.00
Summer Semester Evaluation: 75.00
Output File will be:
Texas State University, San Marcos
Annual Employee Evaluation Report Sept. 1, 2016 to August 31, 2017
Name of the Employee: John Snow
Name of the Supervisor: Bart Simpson
Employee ID #: 9875
Telephone Number: (123)456-7890
Address: 123 Main Street
Fall Semester Evaluation: 90.00
Spring Semester Evaluation: 80.00
Summer Semester Evaluation: 75.00
Final Weighted Evaluation: Computed Value
Salary Raise: Computed Value
Warning/Appreciation Letter: Drafted by the student
Note: This report fo John Nancy was prepared according to the fair practice of the University.
Any discrepancies must be reported by Nancy to her supervisor, Bart
*You must use at least 5 stream manipulators in your program.
*Add the following to your input / output:
-All input must be read from the input file
-All output must be written to the output file
-Read the heading of the report as string from the input file
-Add name, address, and the telephone number of the employee (as strings with spaces) which must be read from input file along with other data
-Customer Id must be a string read from the input file
-All evaluations will be read from the input file
-Report will be written to the output file
-All numbers will be printed with two decimal points to the right of the decimal point
Warning and appreciation letters will be included in the report based on Final Weighted Evaluation (FWE) as follows:
If the FWE is < 70, Report should include a warning letter (draft this letter yourself)
If the FWE is >= 95, Report should include an appreciation letter (draft this letter yourself)
Report should include salary raises based on Final Weighted Evaluation (FWE). Raises are determined as follows:
If the FWE is < 75, Salary Raise = 0%
If the FWE is > 75 but < = 80, Salary Raise = 1%
If the FWE is > 80 but < = 90, Salary Raise = 3%
If the FWE is > 90 but < = 100, Salary Raise = 5%
If the FWE is > 100, Salary Raise = 10%
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started