is C++ program, including ALL the steps shown below: (don't copy from other sources!)  Thank you for your help!  The program prompts the user to enter a two-dimensional array (2x2) of int numbers. The program prints that array and calls isIdentity() function to check whether the entered matrix is an identity array or not. Identity array: in which all

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

Please solve this C++ program, including ALL the steps shown below:
(don't copy from other sources!)  Thank you for your help!

  •  The program prompts the user to enter a two-dimensional array (2x2) of int numbers.
  • The program prints that array and calls isIdentity() function to check whether the entered matrix is an identity array or not.
    Identity array: in which all the elements on the main diagonal are equal to 1 and all other elements are equal to 0.
  • The program then calculates the determinant of that array using det() function.
  • The program prompts the user to enter another two-dimensional array (2x2) of int numbers.
  • The program should add the two arrays and print the result using addArrays() function as shown here.
  • Using a Boolean function isequal() the program checks whether the two arrays are equal or not.

(Any explanation of the code will be really useful and please don't include any advanced code or coding info from any program other than C++ )

 

You will need to write one .cpp file for this question.
The program prompts the user to enter a two-dimensional array (2x2) of int numbers.
The program prints that array and calls isIdentity() function to check whether the entered matrix is an
identity array or not.
Identity array: in which all the elements on the main diagonal are equal to 1 and all other elements are equal to 0.
The program then calculates the determinant of that array using det() function.
The determinant of a 2x2 array is given by
det [a b] = ad-bc
The program prompts the user to enter another two-dimensional array (2x2) of int numbers.
The program should add the two arrays and print the result using addArrays() function as shown here.
+ fl
[a b]+[ h]=[a+¢ bf]
+g
d+h]
Using a Boolean function isequal() the program checks whether the two arrays are equal or not.
Transcribed Image Text:You will need to write one .cpp file for this question. The program prompts the user to enter a two-dimensional array (2x2) of int numbers. The program prints that array and calls isIdentity() function to check whether the entered matrix is an identity array or not. Identity array: in which all the elements on the main diagonal are equal to 1 and all other elements are equal to 0. The program then calculates the determinant of that array using det() function. The determinant of a 2x2 array is given by det [a b] = ad-bc The program prompts the user to enter another two-dimensional array (2x2) of int numbers. The program should add the two arrays and print the result using addArrays() function as shown here. + fl [a b]+[ h]=[a+¢ bf] +g d+h] Using a Boolean function isequal() the program checks whether the two arrays are equal or not.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage