Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need this in C++. please help me. I see this in C# everywhere but I need it in

ID: 3536447 • Letter: I

Question

I need this in C++. please help me. I see this in C# everywhere but I need it in C++. I am having trouble coding this program for Visual Studio 2010 in C++.

iLab 2 of 6: Employee Class

i L A B O V E R V I E W

Scenario and

Summary

We begin our investigation of object-oriented programming by

creating an object-oriented program with a class called Employee. You will

create two objects based on the Employee class, along with a class that contains

the main method. The attributes, constructors, and methods for this class must

satisfy the requirements in Steps 1 through 3. After you create the objects, you

will prompt the user for information and then display it.



We will want to ensure that this first class is well-constructed

and tested since we will extend this class in Labs 3 through 6.



Deliverables



Due this week:




code and screen shots of program output) in the Dropbox.


STEP 1: Understand the UML Class

Use the following UML diagram to build the class. The first

section specifies the attributes. The second section specifies the behaviors,

and the first character specifies the access modifier value, where:


   Employee

+calculatePay() : double

+displayEmployee() : void

+getFirstName() : string

+setFirstName(in first : string)

+getLastName() : string

+setLastName(in last :string)

+getGender() : char

+setGender(in gen : char)

+getDependents() : int

+setDependents(in dep : int)

+getAnnualSalary() : double

+setAnnualSalary(insalary : double)


STEP 2: Code the Employee

Class




new project (i.e., "Realize the UML Class diagrams").


"not given", lastName = "not given", gender = "U" (for unknown), dependents = 0,

and annualSalary = 20,000.


values passed in using its parameter list.


retrieve the stored attribute value, and a "setter" that modifies the value.


annual salary divided by 52 (return annualSalary / 52;).


Employee object in a well-formatted string with logical labels applied to each

attribute. Don't forget to call calculatePay from within the displayEmployee

method in order to display the Employee's weekly pay as well!

STEP 3: Code the Main Program

In the Main class, create code statements that perform the

following operations. Be sure you follow proper commenting and programming

styles (header, indentation, line spacing, etc.).



annual salary. (Remember that you have to convert gender, dependents,

and annual salary from strings to the appropriate data type.)


"Employee Information"

        cout << "Annual Salary: "<<

        setprecision (2) <



first Object Oriented Program--Employee ClassCIS247C, Week 2 Lab Name: Prof.Nana

Liu *************** Employee 1 *************** Please enter your First Name Nana

Please enter your Last Name Liu Please enter your Gender Female Please enter

your Dependents 2 Please enter your Annual Salary 60000 Employee Information

___________________________________________ Name: Nana Liu Gender: F Dependents:

2 Annual Salary: 60000.00 Weekly Salary 1153.85 *************** Employee 2

*************** Name: Mary Noia Gender: F Dependents: 2 Annual Salary: 150000.00

Weekly Salary: 2884.62 The end of the CIS247C Week 1 iLab. Press any key to

continue...








code and screen shots of program output) in the Dropbox

Explanation / Answer

wait

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote