Question: Write a C + + program to solve the math equation stated below: y = a x 3 + b x 2 + c x

Write a C++ program to solve the math equation stated below:
y=ax3+bx2+cx-d
Demonstrate the following items in your C++ program:
Declaring all variables using at least 3 different data types.
One of the variables is declared as a global variable.
Prompt the user to enter the values for each declared variable.
Compute the answer according to the above equation.
Next, using the operator precedence and associativity generate one
different answer than the one obtained from the above equation. You
can name the variable y1 for the original equation and y2 for the
modified equation.
Compare both computed y1 and y2 answers using 1 example of the
relational operator and 1 example of the logical operator.
Output statements for each of the above items are shown.
 Write a C++ program to solve the math equation stated below:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!