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³ + p₂x² + P₁x +Po)) Limits 1

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
Create a program using c language
✓ 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³ + p₂x² + 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 10 20 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³ + p₂x² + 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 10 20 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
Start
Input N
For Loop
Repeats N
Times
Input a1, b1, a2,
b2, a3, b3
Evaluate by
using
formulas
print values
N is the
number of
cases
Loop done?
Values of the
binomials
segment each part of
the formula you gained
through evaluation to
p3, p2, p1, po
tip: evaluate the
problem though
math first
Yes
End
Transcribed Image Text:Start Input N For Loop Repeats N Times Input a1, b1, a2, b2, a3, b3 Evaluate by using formulas print values N is the number of cases Loop done? Values of the binomials segment each part of the formula you gained through evaluation to p3, p2, p1, po tip: evaluate the problem though math first Yes End
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Time complexity
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