Question: PLEASE DO THIS IN C LANGUAGE! THANK YOU 2 3 4 2021W ***** Name: Student ID: Section: (5 MARKS] 5 6 7 8 9 Write,
2 3 4 2021W ***** Name: Student ID: Section: (5 MARKS] 5 6 7 8 9 Write, compile and run a C program to do the following: Create a user-defined function called 'polynomial(x)' that takes ONE parameter, the X-value, and computes the polynomial function: 2x^3 + 6X^2 + 4x + 7. NOTE: You MUST create a user-defined function called 'polynomial(x)' and make a function call from the main() function to receive any marks for this question NOTE: X^3 means x to the exponent 3. Note ^ is not an operator in the language. Refer to the sample run below: NOTE: The Name, Student ID and Section that appears in the output of the program should be your own, not the ones used in the sample run. Sample run 1: ----- 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 My name: Smith, Peter My ID: 309999999 ***** My section: 001 Enter an X-value: 12.4 The result of the equation 2x^3 + 6X^2 + 4x + 7 is : 4792.41 Press any key to continue... PROGRAM OUTPUT Provide TWO sample runs and paste it to your WORD document: For the FIRST sample run, input from the keyboard the X-value of 6.8 For the SECOND sample run, input from the keyboard the X-value of 14.2 38 E#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
