Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started