Question: poly:Pls help for this programing problem in c++,better with some comment about why coding that way,thanks Problem A: Polynomials Time limit: 1 second Problem Description

poly:Pls help for this programing problem in c++,better with some comment about why coding that way,thanks

poly:Pls help for this programing problem in c++,better with some comment about

Problem A: Polynomials Time limit: 1 second Problem Description a program to compute the coefficients of a polynomial. Suppose we are given a product (ax*2 +bx+ c)d, our program must output the coefficients of the resulting polynomial. For example, let a be 1, b be 2, c be 3, and d be 2, then (x 2+2x+ 3)2 -x^4 + 4 x^3 + 10x^2 + 12 x + 9. Given a, b, c, and d please compute all the coefficients. Input The input consists of M cases. The first line of the input contains only one positive integer M indicating the number of, followed by M following cases. The test cases consists of four integers a, b, c(-3a, b, c3 and a - 0), d (1 d 10) Output The coefficients of (axh2+ bx + c)Md, with spaces seperated. Sample Input 1232 Sample Output 4 10 129

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!