Question: Use User Defined function to create two C scripts: 1. The functions do not have to return the result to the main part of your

 Use User Defined function to create two C scripts: 1. The

Use User Defined function to create two C scripts: 1. The functions do not have to return the result to the main part of your script. 2. The functions do NEED to return the result to the main part of your script. Modify For this C script: #include int main) float COEFF12] [3]; float x; float y; printf("Please type in the three coefficients of the first equation. Use the format of &COEFF[0] [0], &COEFF[0] [1], &COEFF [0] [2]); scanf("%fAfAf", printf("Please type in the three coefficients of the second equation. Use the format of ###, ##,##, ## . ## "); COEFFI01 [1]COEFF [1] 01); COEFF[0] [1]*COEFF [1] [0]); %0 .2 f , the answe r for x is %0.2f scanf("%fAfAf", &COEFF [1] [0], &COEFF [1] [1], &COEFF [1] [2]); x-C0EFF [0] [2] *COEFF [1] [1]-COEFF [0] [1] *COEFF [1] [2] )/(COEFF [0] [0] *COEFF [1] [1]- y= (COEFF [0] [0] *CO EFF [1] [2]-COEFF [0] [2]*COEFF [1] [0])/(COEFF [0] [0]*COEFF [1] [1]- printf("With the given values of %0.2f, %0.2f, %0.2f , %0.2f, %0.2f, and the answer for y is 80.2f ", COEFF, COEFF [0][1], COEFF01 [21, CoEFF[1] [0], cOEFF[1] [1], COEFF[1] [2],x,y); getchar(); return0

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 Databases Questions!