Question
You are required to develop a piece of C++ program to perform the Matrix algebra as stated below: 1. Addition & Subtraction 2. Multiplication 3.
You are required to develop a piece of C++ program to perform the Matrix algebra as stated below:
1. Addition & Subtraction
2. Multiplication
3. Trace
4. Transpose
You program should prompt user to select the Matrix algebra they wish to perform and input the corresponding Matrices to calculate. As a general guideline, 1. You should use a double array to represent the Matrix if possible, if you are not using array make sure to display results as Matrix. 2. Check the conditions before performing the algebra, especially matrix dimension compatibility. 3. You need to show test cases that demonstrate your program works to perform the algebra and also capture any exceptions. For some example of test cases, use your program to solve some real-life problems involving matrix algebra as shown below:
In Dev C++ program
Case 2 Given the individual assessment results of 3 students and the allocation percentage of each assessment for the course, calculate the total marks of each students for the course. Student A B Quiz 80 75 92 Assignment 89 80 85 Project 100 85 78 Exam 92 72 88 Assessment Quiz Assignment Project Exam Allocation Percentage 10 % 10 % 20 % 60 %Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started