Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

Students also viewed these Databases questions