Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab-Homework Use the table below to compute the biweekly salary for the MD & CEO and any two employees (1 fulltime and 1 parttime employees).

image text in transcribedimage text in transcribed
Lab-Homework Use the table below to compute the biweekly salary for the MD & CEO and any two employees (1 fulltime and 1 parttime employees). The data members must be defined under the access specifiers as indicated in the table. Note that the deductions should be an Array of Struct and a Public data member in the class definition. Hopefully, these are helpful: 0 STRUCT declaration outside the EMS? - STRUCT Deduct{float tax; string desc; float dedAmt; }; 0 Deductions as data member inside CLASS Public: Deduct deduction[5]= {(20, "Federal Tax'LO},{10, "State Tax", 0},{10, "Medical Pian",0},{5, "Dental Pian'LO},{2.5, "Retirement Pian'LOH; Remember to define all your member functions as public. You are expected to complete the following: In CLASS{}: 1. Constructor(): a. Have a default constructor that can initialize an object at creation: \"Id\Lesson 3 - Lab Table: Access Specifiers Priv. Priv. Protect Protect Protect Pub. Pub Pub. Priv. Protect Protect Protect Expected Contract Hours Days Annual ID. # 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 (Public): Note: Federal Tax - 20% of Gross Full-Time Gross = (Annual Salary/12)/2 (Biweekly) State Tax - 10% of Gross Part-Time Gross = Rate * Hours Per Day * Days Worked (Biweekly) Medical Plan - 5% of Gross Net Pay = Gross - (All Deductions) Dental Plan - 3% of Gross Gross YTD += Gross Retirement Plan - 2.5% of Gross Ded. YTD += (All Deductions) Report Format: ID. No.: Name: Lastname, Firstname Contract: Official Positon: Rate: Hours: Hours Per Day * Days Worked - (Part-Time only) Description Deductions Earnings Gross Pay Federal Tax - 20% State Tax - 10% Medical Plan - 5% Dental Plan - 3% Retirement Plan - 2.5% Sub-Total: ?????? Net Pay:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions