Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Dear chegg experts, I am an engineering student learning C programming. .111 Sta

ID: 3889554 • Letter: D

Question

Dear chegg experts, I am an engineering student learning C programming. .111 StarHub 12:08 PM * 51% . Q7 Convert the following mathematical expressions and formulac into equivalent C expressions or assignment statements (using the mathematical variable names as C variables names). You may use the math.h functions pow, exp and sart, as well as the constant PI, but don't use pow to square variables. a+b b2-4ac c+d a2+b2 ab T20 t+2 z2+ w2 s -b+0b2-4ac celsius- (fahrenheit-32) = 5T+297 kA(T1-T2) a = 1086. 247 ip Q8. Trace the execution of the following expressions using an evaluation tree. Use the values as follows: i-5.j = 7, k-4, m =-6, n-8. flag! = 0, flag2 = 1 (all integers), and a = 3.5, b = 8.0, c = 0.0, d = 40.0 (doubles). n-+j 2) +k-m 3 (a -b) / (2 * (c -d)) Q9 Write a function in C that will take in Cartesian coordinates (x, y) as two doubles and will return an integer which is the quadrant number of that particular point. Assume that the x and y axes themselves are on the "positive side" of each half-plane. Q10. Write a function that will accept two integers as input and will returm the sum of all the integers from the first value, up to and including the second value. Assume the integers are always passed to the function with the lower value first and the higher value second. How would you cater for the inputs being out of order?

Explanation / Answer

7) Please note that questions in this section has been attempted from left to right

b*b - 4*a*c;

( a + b ) / ( c + d );

1 / ( 1 + x*x );

(x*x + y*y) / (z*z + w*w);

sqrt(a*a + b*b) / (a*b);

T = ( (4*t*t) / (t + 2) ) - 20;

celsius = 5*(fahrenheit - 32 ) / 9;

x = ( -b + sqrt(b*b - 4*a*c) ) / 2*a;

a = 1086*sqrt( (5*T + 297) / 247 );

q = k*A*(T1 - T2) / L;

m = i*p / ( 1 - (pow((1 + i), -n)) );

F = pow(n, n)*exp(-n)*sqrt( (2*(2*n + 1/3)*PI) )

7) Please note that questions in this section has been attempted from left to right

b*b - 4*a*c;

( a + b ) / ( c + d );

1 / ( 1 + x*x );

(x*x + y*y) / (z*z + w*w);

sqrt(a*a + b*b) / (a*b);

T = ( (4*t*t) / (t + 2) ) - 20;

celsius = 5*(fahrenheit - 32 ) / 9;

x = ( -b + sqrt(b*b - 4*a*c) ) / 2*a;

a = 1086*sqrt( (5*T + 297) / 247 );

q = k*A*(T1 - T2) / L;

m = i*p / ( 1 - (pow((1 + i), -n)) );

F = pow(n, n)*exp(-n)*sqrt( (2*(2*n + 1/3)*PI) )

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote