Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 1: Structured Programming The task is to create second-degree polynomial calculator for the function, its integral and its derivative. A second-degree polynomial is described
Assignment 1: Structured Programming The task is to create second-degree polynomial calculator for the function, its integral and its derivative. A second-degree polynomial is described by the equation f(x)-ax' + bx+ c Evaluation of the derivative gives the instantaneous slope or rate of change as (where s(x) is the derivative of f(x)): f(x) 2ax+b The integral of the function f(x) (let us call it F(x)) indicates the area underneath the A-F(x)-F(x) curve. Between points x, and x2 , the area A is where, for a second-degree polynomial, Your program will be used to create a table of data of the independent variable x versus ,f(x) , (x) and A. The user will enter the polynomial coefficients {a,b,c) as well as the starting value of x (denote it x), the final value of x (denote it x), and the increment value between successive x values (denote it Ax). Follow these detailed instructions: 1. First, read this document in its entirety. After reading this handout, you may optionally create a design sheet for the problem. Your design sheet should help you determine what header files, functions and variables you will need as well as identifying expected test results. You do NOT turn in your design sheet. 2. When you write your code, include the usual (detailed) comment block including program name, author, date, inputs, outputs and description. 3. Create a function of type void to explain the program to the user with the description printed to the terminal. Do not forget to call the function frommain) 4. input the data while executing from your main () function. Query the user to enter the data. You must enter the parameters from the user in the following order: a, b, c and then x,, x, and Ar . Use double for all variables and calculations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started