/* Derivative of a quadratic function (10 points) Problem Statement: Write a complete C program that prints the derivative of a second order polynomial function (i.e., quadratic function). The program must do the following: * ask the user to enter the three polynomial coefficients * print the original polynomial funciton * print the derivative of the funciton For example, if the user enters 5, 4, 3 The program must print: f (x) = 4x^2 + 5*x + 3 f'(x) = 8x + 5 More generally: a*x*x + b*x +c => 2*a*x + b You can assume that a, b, and c are positive integers. */ #include #include #include int main(void) { int a, b, c; int da, db; printf("This program calculates the derivative of a quadratic function\n"); printf("of the form f(x)= ax^2 + bx + c.\n\n"); printf("Please enter a, b, and c: "); scanf("%d %d %d", &a, &b, &c); da = a * 2; db = b; printf("\nThe derivative of f(x)= %dx^2 + %dx + %d is ", a, b, c); printf(" f'(x) = %dx + %d \n\n", da, db); system("pause"); }