Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago