Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I already finish the coding in C language. I don't know how to change it to pseudocode. So I need answer for the pseudocode.

image text in transcribed

image text in transcribed

Hello, I already finish the coding in C language. I don't know how to change it to pseudocode. So I need answer for the pseudocode.

#include float det3(float A[3][3]); int main(void) { float A[3][3]; float B[3]; printf ("This program uses Cramer's Rule to solve a linear system."); printf (" Enter each of 3 linear equations as four integers separated by space"); printf (" For example, X 2y + 3z = 4 should be entered as 1 -2 3 4"); printf(" Enter equation 1: "); scanf("%f %f %f %f", &A[0][0], &A[0][1], &A[0][2], &B[0]); printf("Enter equation 2: "); scanf("%f %f %f %f", &A[1][0], &A[1][1], &A[1][2], &B[1]); printf("Enter equation 3: "); scanf("%f %f %f %f", &A[2][0], &A[2][1], &A[2][2], &B[2]); // Finding determinants/ float detx[3][3] = {{B[0], A[0][1], A[0][2]}, {B[1], A[1][1], A[1][2]}, {B[2], A[2][1], A[2][2]}}; float dety[3][3] = {{A[0][0],B[0], A[0][2]}, {A[1][0],B[1], A[1][2]}, {A[2][0];B[2], A[2][2]}}; = float detz[3][3] {{A[0][0],A[0][1], B[0]}, {A[1][0], A[1][1], B[1]}, {A[2][0], A[2][1],B[2]}}; 7* Code that determines if the system has a unique solution */ if(det3(A) !=0) printf(" System has a unique solution ( %.1f, %.1f, %.1f)", det3(detx)/det3(A), det3(dety) / det3(A), det3(detz)/det3(A)); else printf(" System does not have a unique solution because determinant is 0"); return 0; } float det3(float A[3][3]) { return (A[0][0]*A[1][1]*A[2][2])-(A[@] [0]*A[1][2]*A[2][1]). +(A[0][1]*A[1][2]*A[2][0])- (A[0][1]*A[1][0]*A[2][2]) +(A[0][2]*A[1][0]*A[2][1])- (A[0][2]*A[1][1]*A[2][0]); }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions