Question: Write a program in C language CSCI 1111 HARVEY NAME ASSIGNMENT #6 (10 points) DUE Write a program to read the coefficients a, b, and

Write a program in C language Write a program in C language CSCI 1111 HARVEY NAME ASSIGNMENT #6

CSCI 1111 HARVEY NAME ASSIGNMENT #6 (10 points) DUE Write a program to read the coefficients a, b, and c of a c equation and print its roots, the values of x such that ax2+bxc-0. The roots are given by: -btb-4as 2a The discriminant is b-4ac. Make all of the variables of type double. Create two functions, besides the main function. One function should return t the negative root of the quadratic formula he positive root and the other Place the two function prototypes locally inside of the main() function, rather than globally. Use local variables.rather than global variables Put in a check to prevent division by zero. Format your output to one decimal place Turn in runs for the following input values: formulas

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!