Question: IN C++ CODING --- PLEASE IDENTIFY EACH TASK. A SKELETON IS PROVIDED. SKELETON-------- In this assignment, you are given the cpp file HW2.cpp, which contains
IN C++ CODING --- PLEASE IDENTIFY EACH TASK.
A SKELETON IS PROVIDED.


SKELETON--------

In this assignment, you are given the cpp file HW2.cpp, which contains a prototype of the class Mat22. Basically, the class is a structure for 2 by 2 matrices - the integers a,b,c, and d represent The class should support several matrik operations, such as addition, mul- tiplication, and fast exponentiation. The class will be used to implement the fast method that computes Fibonacci sequence as we discuss in the lectures. We specify the details in the following tasks. You must submit only a single cpp file. . Task 1: Implement the constructors and the assignment operator. The specification is clear as described in the comments Task 2: Implement the operator overloading forthe following three arithmetic operations +,-, *. Your code should implement the functionalities as below: ai bi The operation for subtraction is similar to the addition. Note: it is possible to finish this task without math backgrounds of matrices. Just follow the rules defined here. . Task 3: Implement the display function (that prints the matrix). Then implement operator overloading for >and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
