Question: C++ Code Lab-Homework - Use the table below to compute the biweekly salary for the employees. The data members must be defined under the access

Lab-Homework - Use the table below to compute the biweekly salary for the employees. The data members must be defined under the access specifiers as indicated in the table. You may define all your member functions as public. You are expected to complete the following: 1. Transformers: a. Create a data entry member function (Transformers) that will be used to manually enter the data from the table to transform the data members (instance) of the object. b. Create a member function that computes the salary and updates data members to prepare them for printing 2. Iterators: a. Create a member function to print the pay slip. The function should only print earnings and deductions as specified in the report format. 3. From Main(): Object creation and initialization a. Create an object/variable for the MD & CEO. Call the data entry function in the class to enter the data manually. Call the function that computes salary. b. Create an array of objects for the remaining employees: Example: className objectArray(4) and use the data entry function to manually enter each object's data from the table provided. Run the salary computation function on each of the objects in the array. 4. Print out the pay slips using the report format given Note that the printing must be done from the Maint). Implies that private data (e.g. ID. No, names etc..) must be retrieved using observer functions. While you use the iterator function which you created in the class to print the pay slip details. Have fun! Lesson 3-Lab Table: ID. # Access Specifiers Priv. Priv. Protect Protect Protect Pub. Pub. Pub. Priv. Protect Protect Protect Expected Contract Hours Days Annual Type Office First Name Last Name Rate Per Day Worked Salary Gross YTD Ded YTD Net YTD 1001 Full-Time MD & CEO Michael Smith 147,000.00 2011 Part-Time Receptionist Maria Rodriguez 20 10 14 2010 Part-Time Administrator James Robert 25 8 12 2012 Part-Time Office Assistant Kenny Mercedes 22 12 12 1002 Full-Time Manager Kyndra Hernandez 75,000.00 Deductions (Publich Federal Tax 2096 of Gross State Tax - 10% of Gross Medical Plan - 5% of Gross Dental Plan - 3% of Gross Retirement Plan -2.5% of Gross Note: Wall-Time dross Annual Salary122 Biweekly) Part-Time Gross - Rate * Hours Per Day Days Worked (Biweekly) Net Pay = Gross - (Al Deductions) Gross YTD - Gross Ded. YTD - (All Deductions Name: Lastname. Firstname Official Positon: Rate: Deductions Earnings Hours: Hours Per Day Days Worked - (Part-Time only Report Format ID. No.1 Contract Description Gross Pay Federal Tax-20 State Tax 104 Medical plan59 Dental Plan Betement Plan 2 Sub Total: Net Pay 777
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
