Make a C++ program that performs the required output below. ALL the inputted data must be stored in an array and the sou

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Make a C++ program that performs the required output below. ALL the inputted data must be stored in an array and the sou

Post by answerhappygod »

Make A C Program That Performs The Required Output Below All The Inputted Data Must Be Stored In An Array And The Sou 1
Make A C Program That Performs The Required Output Below All The Inputted Data Must Be Stored In An Array And The Sou 1 (148.33 KiB) Viewed 54 times
Make a C++ program that performs the required output below. ALL the inputted data must be stored in an array and the source code of this required output below can be see in the main function. The main function will allow the user to input values for the coefficient of x, y, and z for each equation and it will solve for the determinant. REQUIRED OUTPUT: The program will solve for the systems of linear equation using Cramer's Rule. In this program, we will solve for the values of x, y, and z using determinants This is the standard equation: A1x + Bly + Ciz = D1 A2X + B2y + C2z= D2 A3x + B3y + c3z = D3 First Linear Equation: Enter values for A1:2 Enter values for B1:1 Enter values for C1:-1 Enter values for 01:3 Second Linear Equation: Enter values for A2: -1 Enter values for B2:2 Enter values for C2:4 Enter values for D2:-3 Third Linear Equation: Enter values for A3:1 Enter values for B3:-2 Enter values for C3:-3 Enter values for D3:4 This is the standard equation: 2x + 1y + -1z = 3 - 1x + 2y + 4z = -3 1x + -2y + -32 = 4 -1 This is the matrix for the determinant. b = 2 1 -1 2 -2 TI Finding determinant: The determinant is 5

There will be another header file named “menu. h” in which the content of this header file is the source code that will allow the user to choose what value to be solved (x, y, or z). The process of solving it will be also see in this header file. Required output: Solve for the value of: [a] x y [c] z Kindly select the corresponding letter: Ifx will be selected this will be the output. Find the value of x: x = Dx /D The Dx is 15 The D is 5 X = 3 Ify will be selected this will be the output. Find the value of y: y = Dy/D The Dy is -10 The D is 5 Y = -2

If z will be selected this will be the output. Find the value of z: z = Dz/D The Dz is 5 The D is 5 z = 1 NOTE: Cramer's rule was already discussed in your Algebra subject back in High School or in your MATH PLUS subject. And you need to provide necessary error messages for this program. Submit your CPP file in the submission section below. If your examination file will be late, kindly send your exam file to my email, [email protected]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply