Question: e.com/c/MTAOMjczOTIOMTRa c Q Search Purpose: Write two small programs (1)AC program that searches for the root of any user-provided cubic polynomial (2) A C program
e.com/c/MTAOMjczOTIOMTRa c Q Search Purpose: Write two small programs (1)AC program that searches for the root of any user-provided cubic polynomial (2) A C program that computes the weekly pay Getting Started Create a new directory called lab07 under your cse220 directory. Implement the programs below in your lab07 directory Cubic Root Write a program CubicRoot.c that reads four doubles from the user: a, b, c, d (program should read these inputs separated by spaces) and tries to find if the equation a'+ bcd 0 has any roots in the interval I-100, 100). Your program should try doubles in the given range with small incremental steps (e.g, 0.01) and evaluate the equation at every step. should output the corresponding value of root x. If the equation evaluates to 0, the program When comparing two decimals, v2 and vi, do not check if v2 s v1 since floating point comparison may be slightly imprecise. Instead check if the absolute difference is very small. For example: Iv2-v1l 0.0001 Hint: you do not have to use the math library: v2-v1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
