Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE DO THIS IN C LANGUAGE! THANK YOU 2 3 4 2021W ***** Name: Student ID: Section: (5 MARKS] 5 6 7 8 9 Write,

PLEASE DO THIS IN C LANGUAGE! THANK YOU image text in transcribed
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 #include 39 40 41 42 43 pint main() { system("pause"); return; 45 46 47

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

What relationship does OSHA have with small businesses?

Answered: 1 week ago

Question

Strong analytical, communication, and problem-solving skills

Answered: 1 week ago