Given three binomials, the goal of this exercise is to compute for the product of the three binomials. Input Input starts with a number N and is followed by N set of 6 integers (a₁, b₁, a2, b2, a3, b3) (pertaining to (a,x+b;)) Output The output is the product of the three binomials, presented as P3, P2, P1, Po (pertaining to (p3x³ +p₂x² + P₁x +Po))

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 22PE
icon
Related questions
Question

how can I program it?

✓ Allowed languages
C
Problem Statement
Given three binomials, the goal of this exercise is to compute for
the product of the three binomials.
Input
Input starts with a number N and is followed by N set of 6
integers (a1, b₁, a2, b2, a3, b3) (pertaining to (a,x+b;))
Output
The output is the product of the three binomials, presented as
P3, P2, P1, Po (pertaining to (p3x³ +p2x² + P₁x +Po))
Limits
1 < N < 20
-100 \le input \le 100-
Notes
Problems will have test cases that are not listed in their
specification. Your solution must produce the right output for
these hidden test cases.
Sample Input #1
4
1 2 3 1 2 3
-1 0 1 0 -1 0
0 1 0 2 0 3
2 3 1 -10 -5 3
Sample Output #1
6 19 11 -6
1 0 0 0
0006
-10 91 99 -90
Copy
Copy
Transcribed Image Text:✓ Allowed languages C Problem Statement Given three binomials, the goal of this exercise is to compute for the product of the three binomials. Input Input starts with a number N and is followed by N set of 6 integers (a1, b₁, a2, b2, a3, b3) (pertaining to (a,x+b;)) Output The output is the product of the three binomials, presented as P3, P2, P1, Po (pertaining to (p3x³ +p2x² + P₁x +Po)) Limits 1 < N < 20 -100 \le input \le 100- Notes Problems will have test cases that are not listed in their specification. Your solution must produce the right output for these hidden test cases. Sample Input #1 4 1 2 3 1 2 3 -1 0 1 0 -1 0 0 1 0 2 0 3 2 3 1 -10 -5 3 Sample Output #1 6 19 11 -6 1 0 0 0 0006 -10 91 99 -90 Copy Copy
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning