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

LAB 6:: Q1. Overload +, - ,* , / ,++ , - - (both postfix and prefix), >, < , ==

ID: 3541600 • Letter: L

Question

LAB 6::


Q1. Overload +, - ,* , / ,++ , - - (both postfix and prefix), >, < , == operators for the class Complex_No.(you have defined in lab session 02). Comparison should be done on the basis of magnitude. Write a driver program to test your class.


Q2. Define a class Matrix to represent 2x2 matrix. Overload operators for addition and subtraction of two matrices using friend function. Write a driver program to test your class.


Q3. Overload [ ] , insertion (<<) and extraction(>>) operators for class vector that represents 2D vector. Write a driver program to test your class.

Explanation / Answer

Q3. Overload [ ] , insertion (<<) and extraction(>>) operators for class vector that represents 2D vector. Write a driver program to test your class