Matrices are used in mathematics

Assignment Help Software Engineering
Reference no: EM13994727

*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 3x3 matrix
1 5 3
6 3 2
8 6 0
In this problem you will work exclusively with 3x3 matrices.
1.Create a structure that represents a 3x3 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.


Attachment:- alma.txt

Reference no: EM13994727

Questions Cloud

Operates under conditions of perfect competition : Assume that Raul Lopez is a soybean farmer in the Florida panhandle and that he operates under conditions of perfect competition.  If Raul discovers a new irrigation technique that reduces his AVC and ATC, how will the price at which he sells his pro..
Is elasticity elastic-inelastic or neither : Shaun suggests that there wasn't enough time in the experiment. He estimates that in the second month, April, the Café will sell 26,000 meals at $7.50. What would be the Price Elasticity of Demand if Shaun is correct? Is elasticity elastic, inelastic..
Determine the angular acceleration of the yoyo : The inner radius of the yoyo is r = 2.77 cm, and the outer radius is R = 4.49 cm, and the moment of inertia about the axis perpendicular to the plane of the yoyo and passing through the center of mass is ICM = 1.28 x 10-4 kgm2. Determine the linea..
How much money could the land owner have made : How much money could the land owner have made if they took the $350 rent payment and placed it into an annuity paying 2% over the entire lifetime of the rental?
Matrices are used in mathematics : 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 3x3 matrix 1 5 3 6 3 2
The after-tax ror under straight-line depreciation : An income-producing asset costs $60 000, has an estimated useful-life of 7 years, has no salvage value after installation and is expected to produce annual net savings of $15 000. The company's tax rate is 52%. Compute (a) the before-tax ROR, and (b)..
For each item indicate how treatment of the amount : Consider the total effect of items a-d. If HW's goal is to show the lowest total liabilities, which set of standards, U.S. GAAP or IFRS, best helps it meet that goal?
Compute the NPV of an investment : Compute the NPV of an investment with CFo = -$50 000 and CFj = +$12 000 (j= 1,. . . ,6) if the annual interest rate compounded annually, is (b) 10%, (c) 12% interpret the results and approximate the ROR for the Problem by interpolation between the re..
Write down the matrix with payoffs for both players : Write down the matrix with payoffs for both players - what is the Nash equilibrium in pure strategies - What is the probability that this person is from ethnicity γ? Provide your answer in fractions and not in decimal places. Failure to do so will ..

Reviews

Write a Review

Software Engineering Questions & Answers

  How to sketch flow chart to read employee master file

How to sketch flow chart to read employee master file and to output number of employees in each department who have a basic degree.

  The balanced scorecard

Project managers can use one of several approaches to measuring the quality and success of an IS/IT project. For example, balanced scorecards are a simple and effective way of gauging the level of user adoption and success of an IS/IT project.

  How does the marketing environment affect a firms marketing

how does the marketing environment affect a firms marketing strategy?what steps in the evolution of new products are

  Describe the primary sdlc methodologies

The System Development Life Cycle has constructed over the decades to include a variety of Methodologies. Each of these Methodologies utilizes same processes in a different way.

  Benefits rfp in process of purchasing technology

Why do companies use RFPs and what benefits does use of RFP give to process of purchasing technology?

  Evaluate the quality of the software the team is producing

Evaluate the quality of the software the team is producing. Evaluate the impact changing the development environment had on productivity.

  Show how each of the following floating point values

Show how each of the following floating point values would be stored using IEEE-754 single precision (be sure to indicate the sign bit, the exponent, and the significant fields).

  Create a computer program

Create a class named Consumer Record that holds a consumer number, name, and address. Include technique to set the values for each data field and output the values for each data field.

  Naming conventions in programming language

Discuss and explain why naming conventions are important and why programmers should consistently follow them. Include in this discussion problems that could arise in naming variables if one convention is not followed.

  Assignment on cooling requirements

From e-Activity, examine the contemporary options that are available to keep data centers and computing devices from overheating. Speculate on the ramifications to hardware located in a hot data center.

  What are the advantages of a web server?

What are the advantages of a Web server?

  Describe the waterfall methodology

Describe the waterfall methodology and identify its relationship to the PMBOK® process groups. Describe the agile methodology and identify its relationship to the PMBOK® process groups.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd