Please answer the following three questions separately 1. For this question, ass
ID: 3728080 • Letter: P
Question
Please answer the following three questions separately
1. For this question, assume that all the prior declarations have been made. You have defined a class name of employeeType which is int. Please write statements to declare two objects of the type employeeType. They will be orgEmpType and deptEmpType and will pass four instance values of 4, 6, 10, 25 and 41, 62, 105, 253, respectively.
2. Consider the constructor below. employeeType employeeType(int = 0, int = 0, int = 0, int = 0); Please write the instance variables for employeeType, calling it empCode and initialize instance 1 to 0; instance 2 to 8; instance 3 to 9 and 6; instance 4 to 10, 17, and 25; and instance 5 to 7, 24, 10, 19. Please remember correct format.
3. Please define below a struct named employeeType that has 6 members. You will need three members of type string to store the first and last names, and the job position; one member of type double to store rate of pay; one member of type char for experience level; and one member of type int for employee paygrade code. Please make sure to include all the parts to satisfy the syntax.
Explanation / Answer
1.
employeeType orgEmpType(4, 6, 10, 25), deptEmpType(41, 62, 105, 253)
2.
employeeType empCode1;
employeeType empCode1(8);
employeeType empCode1(9,6);
employeeType empCode1(10,17,25);
employeeType empCode1(7,24,10,19);
3.
struct employeeType{
string firstName, lastName, jobDesc;
double ratePay;
char expLevel;
int payGrade;
};