Question: In C + + Q 3 . The following is the product of two polynomials of degree 2 : ( a x 2 + b

In C++
Q3. The following is the product of two polynomials of degree 2:
(ax2+bx+c)(dx2+ex+f)=(ad)x4+(ae+bd)x3+(af+be+cd)x2+(bf+ce)x+(cf)
Write a program that prompts the user for doubles to be placed in double variables a,b,c,d,e,f and integer value for integer variable n, and prints the product (ax2+bx+c)(dx2+ex+f). The doubles printed must be to n decimal places in fixed point format where the value of n is the last user-input value.
[In the test cases below, because of the page width of this document, you see wraparound. In your program, you should not print a newline in the middle of the polynomial.]
TEst 1.
(1x-2+2x+3)(4x-2+5x+6)=4x-4+13x-3+28x-2+27x+18
TEst 3.
1.12.23.34.45.56.61
(1.1x???2+2.2x+3.3)(4.4x???2+5.5x+6.6)=4.8x???4+15.7x???3+33.9x???2+
32.7x+21.8
TEST 4.
1.2344.3212.3455.4323.4566.5433
(:(1.234x???2)+(4.321x+2.345)(5.432x???2)+3.456x}
27.736x???3+35.745x-2+36.377x+15.343
 In C++ Q3. The following is the product of two polynomials

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!