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

Please answer these in the before 12:30pm(afternoon) EASTERN STANDARD TIME!!! 1)

ID: 3628074 • Letter: P

Question

Please answer these in the before 12:30pm(afternoon) EASTERN STANDARD TIME!!!


1) Explain how to use loops to process data stored in a two-dimensional array. In your explanation include a two-dimensional array declaration and initialization and the code required to print the data elements using loops.

2)Develop a class definition that models an employee. Include private & public member functions & variables. Demonstrate how the class would be instantiated and how class members would be accessed.

3)What is the purpose of the new operator? Demonstrate how to use the new operator to create an array whose size is determined by user-input at run time.

4)Explain what a dangling pointer is, why they are harmful and demonstrate using a C++ code segment how to avoid dangling pointers.

5)Explain the difference between unary and binary operator overloading. Provide a code segment that illustrates both types of overloading. Explain why operator overloading is necessary.

Explanation / Answer

}

//binary oerator Exmaple:

int main()

{