Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 129Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started