Question
Write a Program. You must use at least 5 stream manipulators in your program. -Add the following to your input / output: *All input must
Write a Program. 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 text file
*All output must be written to the output text 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%
-The following is the input file
Name of the Employee: John Smith Name of the Supervisor: Alyssa Puckett Employee ID #: 123456789 Telephone Number: (321)330-8004 Address: 123 Fake Street Fall Semester Evaluation: 90.00 Spring Semester Evaluation: 95.00 Summer Semester Evaluation: 92.00 Final Weighted Evaluation: 92.42
________________________________________________________
Write a program in C++ to print an evaluation report of a Univerisity employee who is evaluated three times a year (Fall, Spring, and Summer) at the end of each semester. Each evaluation is weighted as shown below:
Evaluation Item | Weight |
| ||
Fall Semester (0.00 - 100.00) | 0.39 |
| ||
Spring Semester (0.00-100.00) Summer Semester (0.00-100.00 | 0.37 0.24
|
| ||
|
|
| ||
The program will read input values from the key board. You do not need to read headings in the INPUT, but you must print headings in the OUTPUT as shown in the samples below. The first three inputs are of type string and the other three are of type floating point. You should have your own data. Names (Nancy Price and John Albert) in the note should be printed from the input, not as a part of the string constant. Using the above scales of weights, compute the final annual evaluation as a weighted sum for the combination of the three evaluations. A sample of input/output values is given below:
INPUT
Name of the Employee: John Smith
Name of the Supervisor: Alyss Puckett
Employee ID #: A-5971-359182
Telephone Number: (321) 354 9855
Address: 123 Fake Street
Fall Semester Evaluation: 90.00
Spring Semester Evaluation: 80.00
Summer Semester Evaluation: 75.00
OUTPUT
University
Annual Employee Evaluation Report Sept. 1, 2016 to August 31, 2017
Name of the Employee: John Smith
Name of the Supervisor: Alyssa Puckett
Employee ID #: A-5971-359182
Telephone Number: (321) 354 9855
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
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