Top Research Professionals
The research experts and assignment help team consists exclusively of highly qualified graduate writers, each professional with in-depth subject matter expertise and significant experience in custom academic writing.
For similar papers and sample answers; with a few clicks, Order your research paper, thesis, dissertation writing and other assignment help services
Posted: April 10th, 2022
Matrices are used in mathematics- Software Engineering
Please write all answers in c++ code using Xcode and make sure the program runs successfully… and have fun solving 🙂
Part B)Matrices are used in mathematics, often to represent vectors or systems of equations. A matrix is a set of numbers arranged in a particular pattern. For example, the following is a 3×3 matrix
1 5 3
6 3 2
8 6 0
In this problem you will work exclusively with 3×3 matrices.
1.Create a structure that represents a 3×3 matrix.
Use 3 arrays; one to represent each row in
the matrix.
2.Write pseudocode and then into C++ code for the function void printMatrix(Matrix m) that prints out all of m’s information in a nice format. Include pseudocode (and C++ code) for a main function which calls these. Initialize your matrix using {} notation.
3.Write pseudocode & then into C ++ code for a function Matrix add(Matrix m1, Matrix m2) which returns a new matrix which is the sum of m1 and m2. Adding matrices works as you might expect, where the sum at each location is the sum of the individual values in those locations; e.g.
1 2 3 9 8 7 10 10 10
4 5 6 + 6 5 4 = 10 10 10
7 8 9 3 2 1 10 10 10
4.Write in C++ code for a function Matrix sum(Matrix mats[], int size) that adds up all the atrices in mats and returns the result.
Part C)
Attached below is a program using a Student struct.
The main difference is that I’ve added a Transcript variable, where Transcript is a struct defined above Student. You will modify printStudent,
initializeStudent, and mergeStudent to incorporate this new member variable.
In initializeStudent, you should add code to read in the students’ courses and grades. From the grades entered, you should compute the student’s gpa.
In printStudent, you should add code to print out the students’ courses and grades, and their gpa.
In mergeStudent, you should add code that will include all courses from both students (but with no duplicates) and compute the new gpa, and store these values into the returned Student.
The idea of the mergeStudent function is that there may be two duplicate variables representing the same student, and
you want to come up with a new variable based on those.
We prioritize delivering top quality work sought by college students.
The research experts and assignment help team consists exclusively of highly qualified graduate writers, each professional with in-depth subject matter expertise and significant experience in custom academic writing.
Our custom writing services maintain the highest quality while remaining affordable for students. Our pricing for research papers, theses, and dissertations is not only fair considering the superior quality but also competitive with other writing services.
We guarantee plagiarism-free, human-written content. Every product is assured to be original and not AI-generated. Our writers, tutors and editors are research experts who ensures the right formating and citation sytles are followed. To note, all the final drafts undergo rigorous plagiarism checks before delivery for submission to ensure authenticity for our valued customers.
When you decide to place an order with Dissertation Help, here is what happens: