Create a program that ask users to choose the size of matrix

Assignment Help Computer Engineering
Reference no: EM132164450

Using C++ create a program that is composed of five files to calculate the determinant of a user-entered square matrix. The program will have two functions, each with its own header file and source code (.hpp and .cpp) and a main file to run everything.

The matrix will be square and the size will be 2x2 or 3x3. The first function is readMatrix(). It will have two parameters: a pointer to a 2D array and an integer as the size of the matrix.

It will prompt the user to fill a square matrix and store the input into the 2D array. The second function is determinant().

It will have 2 parameters: a 2D array and an integer, which is the size of the square. It will return an integer value with is the determinant of the matrix stored in the 2D array.

In the main file, you will create a program that ask users to choose the size of the matrix (2x2 or 3x3), then uses readMatrix() to prompt the user to enter 4 or 9 values to fill the array, calculate the determinant using determinant(), and display both the array and the determinant to the user.

The array should not be displayed in a single line but in a square format.

Reference no: EM132164450

Questions Cloud

Identify the claim and state h0 and ha : a) Identify the claim and state H0 and Ha. What is the? claim?
Calculate and tell the user the distance to the basket : Write a program with comments (//comments explaining to user) that uses methods and simulates throwing a rock in a basket in a straight line.
What are correlations and how do they work : What are correlations and how do they work? What different types of correlations exist?
Thickness of the steel plates it produces : A manufacturer claims that the thickness of the steel plates it produces is 61 mils (thousandth of an inch). Car manufacturer's quality control officer
Create a program that ask users to choose the size of matrix : It will prompt the user to fill a square matrix and store the input into the 2D array. The second function is determinant().
How social media impacts our ability to have meaningful life : Does the book, You Are Not a Gadget, help us understand how social media impacts our ability to have a meaningful life? Explain
Confidence interval for the true proportion : A survey of 529 citizens found that 311 of them favor a new law. We want to find a 95% confidence interval for the true proportion of citizens who favor the law
Write a driver program to fully test your functions : Sequential Search of the Company Record List to find -- Last Name, Company, Job Title or Phone number.
Identify the null and alternative hypotheses : Use a chi X2-test to test the claim sigma squared equals 0.42 at the alpha equals 0.10 significance level using sample statistics s squared equals 40.6

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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