Calculate the determinant of a user-entered square

Assignment Help Computer Engineering
Reference no: EM132164407

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

Questions Cloud

How many times do you expect to win : How many of the 50 states are expected to incorrectly reject H0 for company A?
Design and implement a class for a deck of cards : Design and implement a class for a deck of cards, named DeckOfCards.
Define a function and implement binary search : Define a function and implement binary search to search in the sort the array; in main(), define an integer N.
Food insecurity in the general population : Using a 0.05 significance level, you need to test the claim that the proportion of adults with food insecurity among those with mood disorders
Calculate the determinant of a user-entered square : It will prompt the user to fill a square matrix and store the input into the 2D array. The second function is determinant().
Design a struct or object suitable for representing cats : A particular club whose members are interested in cats wants to computerise all their records.
What would be your prime concerns involving police stress : Define Stress. Distinguish between positive and negative stress, describe a police department program that can be implemented to reduce stress.
Terms of the variables of the particular study : Explain what a Type I and Type II error would be in this study. State the answer in terms of the variables of the particular study.
How may have the given case turned out : Complete a timeline outlining important people, ideas, and events in the forensic science profession which have influenced the criminal justice system.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questiona consider on how you would know if a computer were

questiona. consider on how you would know if a computer were thinking like a humanb. someone with very little knowledge

  Calculate and display a square matrix multiplication table

Calculate and display a square matrix multiplication table. For instance a sample output for a 4x4 table is listed below.

  Reconfiguring the network for your company

You have been tasked to reconfigure the network for your company that has grown noticeably over the past year. You have used only the static routing in past, however you do not wish to spend the administrative time required to monitor the routing ..

  How you would delete element from multiway radix search tree

Describe how you would delete an element from a multi-way radix search tree. Find a set of 12 keys that make a particularly badly balanced Patricia tree.

  Write a program that creates a list containing the items

Write a program that creates a list containing these items and then uses each function introduced in this chapter at least once.

  What is a double bus fault and why is it described as fatal

Describe the 68000s BERR* exception sequence. Explain why the 68000 BERR* sequence is limited by comparison with the 68010 and later 68XXX family.

  What problem may occur and what can be done about system

Consider a system that does client caching using the write-through algorithm. What problem may occur, and what can be done about it?

  Explain the it security policy in detail

This part of the assignment is FOR GRADING for this week. This assignment is a document addressing security and should be submitted to the week's individual.

  What steps can your leadership team take

You all work in or know of people who work in enterprise IT environments Maintaining the enterprise security posture, legal risk, and security is constantly.

  What are the contents of the stack pointer

Suppose that an 8-bit microcontroller has a 16-bit stack pointer and uses a 16-bit register to access the stack from the top.

  Creating an automated greeting system

Apartments 101 through 110 are on the first floor, Apartments 201 through 210 are on the second floor, and Apartments 301 through 310 are on the third floor.

  Create a new project in your ide named animalinfo

Create a new project in your IDE named "AnimalInfo." Create a class called "AnimalInfo" as the main class for the program.

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