this is for C++
you choose only 1 option:
You have two options, I and II:
I: Write a program that calculates the determinant of a 4x4 matrix of double precision values. Create a library that contains three functions: one that calculates the determinant of a 2x2 matrix, one that calculates the determinant of a 3x3 matrix, and one that calculates the determinant of a 4x4 matrix. Note that the 3x3 function calls the 2x2 function three times and the 4x4 function calls the 3x3 function four times. Your main function must ask the user to input in all 16 values of the original 4x4 matrix. Note that the output is a single double precision value (display it to four decimal places).
II: Write a program that calculates the product of two matrices containing real numbers. First, ask the user to define A, B, and C, where the first matrix must be of size (AxB; rows x columns) and the second matrix must be of size (BxC; rows x columns). If the dimensions do not allow a product to be calculated, output an error message. Next, dynamically create two arrays of the correct size and ask the user to enter in all values of each matrix. Calculate the resulting product, which will be a matrix of size AxC (rows x columns). Finally, output the resulting matrix, using four decimal places of precision. To create a dynamic 2-dimensional array, follow the example below, which dynamically creates an array with m rows and n columns:
typedef int* ArrayPtr;
ArrayPtr *my_array new ArrayPtr[m];
for (int i=0; i
Dear Employer,
I'm a very experienced developer (+17yr) and researcher in mathematics. I can guarantee a high quality and well documented solution for you.