Question: Please code in C Problem 2. Create a script that will compute the slope of the line tangent of f(x) = CX over a range

 Please code in C Problem 2. Create a script that will

Please code in C

Problem 2. Create a script that will compute the slope of the line tangent of f(x) = CX" over a range of x with an interval. The user should be prompted to type in values for C, n, lower and upper bound of range for x, and interval. *For the range and interval, the user should type in ONLY positive numbers. The computer should check this and halt the process if user used a negative number(s) for the range or the interval. (The slope of the line tangent of a function can be found by finding the derivative of the given function.) Use the following screenshot for example. 1) When wrong input for range or interval is used (Example) This program will find the slope of the tangent line of y=C*xn Over the range of numbers that you choose Type an integer for C=>3 Type an integer for the power n =>2 Type the lower bound for your x. Please choose a positive number ->-1 Type the upper bound for your x. Please choose a positive number =>1 Type the interval for the evaluation of slope. Please choose any positive float number =>0.5 You chose [-1.00, 1.00] for the range and 0.50 for the interval. Error on the range or interval. Good bye! 2) When everything went smoothly (Example) This program will find the slope of the tangent line of y=Cxxn Over the range of numbers that you choose Type an integer for C=>3 Type an integer for the power n => 2 Type the lower bound for your x. Please choose a positive number = >1 Type the upper bound for your x. Please choose a positive number =>3 Type the interval for the evaluation of slope. Please choose any positive float number = >0.5 The slope of the tangent line of y=3*X 2 at 1.00 is 6.00. The slope of the tangent line of y=3xx 2 at 1.50 is 9.00. The slope of the tangent line of y=3*X 2 at 2.00 is 12.00. The slope of the tangent line of y=3xx 2 at 2.50 is 15.00. The slope of the tangent line of y=3xx 2 at 3.00 is 18.00

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!