Question: The solution for the linear equations: a 1 x + b 1 y = c 1 a 2 x + b 2 y = c

The solution for the linear equations:
a1x+b1y=c1
a2x+b2y=c2
Marking scheme
is given by x=b2c1-b1c2a1b2-a2b1
y=a1c2-a2c1a1b2-a2b1
With the condition that a1b2-a2b10
Write a C++ program which calculates these solutions x and y
\table[[Part],[Documentation,1],[Compiler directives,0.75],[Program structure,1],[Main function,0.75],[Comments,1],[Input,1],[Output,13],[Variables declaration,3.5],[Formulae,8]]
(a) Prompt the user for the real coefficients a1,b1,a2,b2,c1 and c2
(b) Calculate the solution x and y taking into account the condition mentioned above.
The result should display as shown on the screen below:
The solution for the linear equations: a 1 x + b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!