Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please do in c++ visual studios // constants const int MAX_EMPLOYEES - 50; const int STD_HOURS_PER_WEEK = 40; const double OT_RATE = 1.5; const double
please do in c++ visual studios
// constants const int MAX_EMPLOYEES - 50; const int STD_HOURS_PER_WEEK = 40; const double OT_RATE = 1.5; const double LOCAL_RATE = 0.015; const double STATE_TAX_RATE = 0.06; const double FED BKT 1 = 460; const double FED_BKT_2 = 900; const double FED_BKT_3 - 1500; const double FED_RATE 1 = 0.02; const double FED_RATE_2 = 0.8; const double FED_RATE_3 = 0.14; const double FED_RATE_4 = 0.22; Payroll Report for Dec 25, 2020 Employee TYP Gross Local State Fed Net Pay --- HALISI Vixen Reindeer Dasher Reindeer Elf Ona Shelf Jack Frost H H s C 1068.75 740.00 1200.00 575.00 16.03 11.10 18.00 0.00 64.13 149.63 $ 838.96 44.40 592.00 $ 92.50 72.00 168.00 $ 942.00 0.00 0.00 $575.00 - --- TOTALS: 3583.75 45.13 180.53 909.63 $2448.46 Highest paid employee: Elf Ona Shelf($1200.00) Hourly Employees: 2 Salaried Employees: 1 Contractors: 1 Learning Objectives Use of MS Visual Studio C++ to write a programming solution Use of simple user input/output and formatting in a program. Use of decisions in a program. Use of loops and looping strategies in a pragram. Writing data to a text file in a program General Description: Write a small application to process payroll for a group of employees. The program starts by printing a fogo as shown in the example you may be more creative), which includes your name it should then open a file called "payroll.txt" for writing. When the Tile fails to open the program prints "unable to Payroll Express per payroll.txt" and exits the program use by XXXX return 0; inside an if statement in main() The program should ask the user to enter the report Enter date for report: Dec 25, 202 date (which may have spaces and the number of employees. The number of employees should be Enter nutter of employees: 3 Enter a number 1 to 50 velicated to be between 0 and 50, repeating the error Enter number of employees: 51 message and prompt as shown in the example, until a Enter a number 1 to 50 valid answer is entered Enter number of employees & For each employee, the following processing occurs: Prints a blank line followed by "Employee n;" where n=1,2,3... Employee 1: Enter name: Vixen Reindeer The program asks for the employee's name H-hourly Susalaried C=contractor (which may have spaces) Enter employee type: lazy It asks for the employee type (H, S or C: for Invalid entry. Enter H, S or c! Hourly, Salaried or Contractor), using a Enter employee type: 1 validation loop to repeat the question as Invalid entry. Enter H, S or C! shown when an invalid answer is entered. Enter employee typen Only the upper case value of the first letter entered is checked for correctness. Here is some C++ example code on how to get the uppercase of the first value entered: string answer; char f; coutStep 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