Create a program that is composed of five files

Assignment Help Computer Engineering
Reference no: EM132164349

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: EM132164349

Questions Cloud

What evidence supports the main point : Using the CSU Online Library, please locate an article regarding entrapment. Your article should be no more than five years old and should come.
Print a list of the perfect numbers : Print a list of the perfect numbers between 1 and 100 ;
Standard deviation of the annual salaries of fire? fighters : Is there enough evidence to support the claim that the standard deviation of the annual salaries of fire? fighters' is different from ?5600 at the 5?% level
What are the requirements to become a police officer : Talk about the law enforcement in the country, is it centralized, decentralized, semi-centralized. What are the requirements to become a police officer?
Create a program that is composed of five files : Create a program that is composed of five files to calculate the determinant of a user-entered square matrix.
Customer for breach of contract : Your firm, Brisk8, has been sued for $3 million by a customer for breach of contract.
Describe cognitive functions that are maintained : Describe cognitive functions that are maintained or improve in late adulthood. What aspects of aging contribute to them?
How does stress affect officers : Law enforcement officers face all types of stress during their daily activities. How does stress affect officers? After watching officer stress videos.
Prove that for any experiment and associated sample space : Using the axioms of probability, prove that for any experiment and associated sample space ?, P(f) = 0.

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