Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 2 Write a C program to calculate the following quadratic function. f ( x ) = a x 2 + b x + c
Exercise
Write a program to calculate the following quadratic function.
The constants are the last three digits of your ID For example, if your ID is A then, Declare an int type array, and fill the array with the last three digit of your ID Figure illustrates the filled array:
table
Declare three pointers which points to each of the three array element. As Figure illustrates:
The following function prototype is given to calculate the quadratic function:
int quadratic int aptr int bPtr int cPtr;
Given than Write the function definition for the function quadratic. Calculate the quadratic function.
Using only the pointers display the:
a The last three digits of your ID
b The memory location of each of the pointers
Display the calculated value of the quadratic function.
The program's output display must follow the format of output display shown in Figure example for ID:A:
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