Question: In c++ Write a definition for a structure type for records consisting of a person's wage, accrued vacation (which is a whole number of days),

In c++ Write a definition for a structure type for records consisting of a person's wage, accrued vacation (which is a whole number of days), and status (which is hourly or salaried). Represent the status as one of the two char values 'H' and 'S'. Name your new data type EmployeeRecord. Write a main method that has several EmployeeRecord variables. Some should be initialized with values of your choice. For others, you should prompt the user for information to store. Once you have stored the information in a struct variable, for each salaried employee, calculate the total extra compensation they would receive if the company decides to reimburse them $200 per accrued vacation day and display this on the screen. Bonus: Create an array of 10 EmployeeRecord variables, filled with meaningful information. Use a loop to go through the array. Determine if each employee is salaried. If he is, calculate the total extra compensation he would receive if the company decides to reimburse him $200 per accrued vacation day and display this on the screen. In addition, calculate the total amount of money the company will have to pay out for such compensation to all salaried employees in the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!