Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

Students also viewed these Databases questions

Question

What is management growth? What are its factors

Answered: 1 week ago