Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

language c++ plese print the output as well need answer for part C . 3. ADT array-based polynomials a Input/output Input: (1) The degree of

language c++ plese print the output as well
need answer for part C image text in transcribed
. 3. ADT array-based polynomials a Input/output Input: (1) The degree of the polynomial (the highest degree of all the terms in the polynomial) (2) The coefficient for each term from the highest degree to the lowest degree Output: Print out the polynomial. eg.: if user enters 3 for the degree of the polynomial and enters 7,0,9, 10 for each term from the highest degree to the lowest degree, then the output will be: 7x13+9x+10 b. Evaluation Once the polynomial has been entered by the user, prompt the user to enter the value of x and evaluate the polynomial and print out the value of the polynomial. e.g, if user enter 2 for the value of x (that is, x-1), then you evaluate the polynomial as 7*2 3 +9*2+10-84 and you print out the value of the polynomial is 84. c. Add two polynomials. Prompt the user to enter two polynomials (as above in step a), then add these two polynomials and print out the result. e.g. for the first polynomial, the user enters 3 for the degree of the polynomial and enters 7. 0,9, 10 for each term from the highest degree to the lowest degree, for the second polynomial, the user enters 2 for the degree of the polynomial and enters 1, 2, 3 for each term from the highest degree to the lowest degree, then you have 15 polynomial: 7x 3-9x+10 31. polynomial: */2-2x-3 After you add these two polynomials: your have 7x^3+x 2-11x+18

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

3. Are you varying your speaking rate and volume?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago