Use C
First, ask for input and execute your quadratic solver exactly as you did before. Compute the rootsxt and x2, and print them out as part of an apropriate messays you did for The one difference: Change all your float variables to double variables to have better arithmetle precision. (This means you should also change to or in all your privee And Now, Something Different: Now for the new task evaluate yor+b+c and print the results for + 2 (0.0, 1.0, 2.0,3.0,...,10.0) . 3 E (1.0.0.1, 0.01,...,0.00000001) 2 (1.0, 10.0, 100.0..., 1 000 000 000.0) 2 (-10.0, -9.0,-8.0,..., 8.0, 9.0, 10.0) Three caveats . You must use loops to evaluate and print these four sets of a . You must write a single function that returns y= ax + box + c for a given a. b. c. and x and use the loops to call it repeatedly Format the printouts nicely, and make sure to distinguish between the four sets of values so the output is readable You must still go by the following Do no arithmetic in main) Create functions that do all your math Do not use any global variables. . You must specifically use a function to compute the discriminant the part of the quadratic under the square root Comment every function every paragraph of code as we discussed in class, and any line of code that does more than two things Indent your code properly. Your editor will do this for you! Let it Your code must compile without crrors some warrings are okay at this stage --If youre coocomed that a warning micht not be as me and fun with any reasonable values of bande- testing them on my end. Name your le cop3223-as2 yourfastname yourfirstname for example mine will be named cop3223-as gerber matthew. Subest only the chile here. First, ask for input and execute your quadratic solver exactly as you did before. Compute the roots and x2, and print them out as part of an apartment as you did for Asient The one difference: Change all your float variables to double variables, to have better arithmetic perckion. This means you should also change it to Sur in all year printeren And Now. Something Different: Now, for the new task evaluate yo be + cand print the results for: - (0.0, 1.0, 2.0, 3.0,...,10.0) . (1.0, 0.1, 0.01,...,0.00000001) .. (1.0, 10.0, 100,0,..., 1 000 000 000.0) IE(-10.0, -9.0, 8.0, 8.0,9.0, 10.0) Three caveats You must use loops to evaluate and print these four sets of values. . You must write a single function that returns your + e fora vena, b, cand and use the loops to call it repeatedly Format the printouts nicely, and make sure to distinguish between the four sets of values so the output is readable! You must still go by the following Do no arithmetic in main. Create functions that do all your maths, Do not use any global variables You must specifically use a function to compute the discriminant the part of the quadratic under the sure root. Comment every function every paragraph of code as we discussed in class and any line of code that does more than two things Indent your code properly. Your editor will do this for you! Let it Your code must compile without errors some warnings are okay at this stage if you're concerned that a warning nicht not be okay.sk me and with water andere testing them on my end Name your file cop3223-252-yourlastname yourfirstname for example, mine will be named cop3223-12 perber matthewe. Submit only the theme