Question: Write a menu driven program that uses FOR loops to evaluate the following polynomials (note that you should be using an if block or switch

Write a menu driven program that uses FOR loops to evaluate the following polynomials (note that you should be using an if block or switch block for the menu). Display the results in a table. Include column headings. The user should select from the menu the polynomial they want to evaluate and also enter the starting value for X, the stopping value for X, and the increment value.

Y=X3-2X+10

Y=X4+3X2-15

Y=X2-10

Use the following sample data to test your program.

RUN 1: Select the first polynomial and let X range from 7 to 7 in increments of 0.5.

RUN 2: Select the second polynomial and let X range from 0 to 50 in increments of 5.

RUN 3: Select the third polynomial and let X range from 5 to 10 in increments of 0.25.

RUN 4: Make an invalid select from the menu.

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!