Question: the link provided has the codes from the previous assignment that is being further developed in this assignment This assignment modifies your quadrati formula plotter
This assignment modifies your quadrati formula plotter to be array-based, Retained from Before: Ask for input as you did before. You no longer need to solve for the roots of the quadratic, and you may remove those functions from your code And Now, Something Different: You will stil evaluate y = az? + b + cand print the results, for: 2 (0.0, 1.0,2.0,3.0,...,10.0) * E (1.0, 0.1, 0.01, 0.00000001) . E (1.0, 10.0, 100.0,..., 1 000 000 000.0) 3 (-10.0, -9,0,-8.0,..., 8.0,3.0, 10:0) But now, there are additional caveats . You must create arrays of all four of the above sets of values . You must use loops to initialize these arrays . You must create arrays to store they-results for all four of the above sets of values . You still must have a single function that returns y = ar?--bx + c for a given a b, c, and x and use the loops to call it repeatedly . You must also have a single function that Accepts a, b,andc Accepts an array of x values Accepts a count of those x values Accepts an array buffer for y values Writes the computed y value for each x value into the corresponding spot in the yarray butter You must still format the printouts nicely, and make sure to distinguish between the four sets of values so the output is teadablet 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 errors (some warnings are okay at this stage - if you're concerned that a warning might not be okay, ask mel and run with any reasonable values of a band's be testing them on my end. PPrevious code link: https://www.chegg.com/homework- help/questions-and-answers/https- wwwcheggcom-homework-help-questions- answers-assignment-require-arithmetic-c- involvin-967737756?trackid=zXSNraWS This assignment modifies your quadrati formula plotter to be array-based, Retained from Before: Ask for input as you did before. You no longer need to solve for the roots of the quadratic, and you may remove those functions from your code And Now, Something Different: You will stil evaluate y = az? + b + cand print the results, for: 2 (0.0, 1.0,2.0,3.0,...,10.0) * E (1.0, 0.1, 0.01, 0.00000001) . E (1.0, 10.0, 100.0,..., 1 000 000 000.0) 3 (-10.0, -9,0,-8.0,..., 8.0,3.0, 10:0) But now, there are additional caveats . You must create arrays of all four of the above sets of values . You must use loops to initialize these arrays . You must create arrays to store they-results for all four of the above sets of values . You still must have a single function that returns y = ar?--bx + c for a given a b, c, and x and use the loops to call it repeatedly . You must also have a single function that Accepts a, b,andc Accepts an array of x values Accepts a count of those x values Accepts an array buffer for y values Writes the computed y value for each x value into the corresponding spot in the yarray butter You must still format the printouts nicely, and make sure to distinguish between the four sets of values so the output is teadablet 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 errors (some warnings are okay at this stage - if you're concerned that a warning might not be okay, ask mel and run with any reasonable values of a band's be testing them on my end. PPrevious code link: https://www.chegg.com/homework- help/questions-and-answers/https- wwwcheggcom-homework-help-questions- answers-assignment-require-arithmetic-c- involvin-967737756?trackid=zXSNraWS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
