Question: (C++ Dynamic arrays problem) Hello, I need help to write a program about polynomial multiplication by using a dynamic arrays.(Only using C++) Here's an instruction,

(C++ Dynamic arrays problem) Hello, I need help to write a program about polynomial multiplication by using a dynamic arrays.(Only using C++)

Here's an instruction, please follow it thoroughly.

For this problem, you must write code that can multiply polynomials together (i.e. FOIL at a arbitrary high dimension).

First you should prompt the user for the number of coefficients and then read each coefficient (starting from the constant term).

Repeat this a second time for a second polynomial. You must use dynamic memory to assign these polynomials.

You should also delete all dynamically created variables before the end of your program. (You do not need to use a class to store these polynomials as we used in Lab 9 Workout 1.) Once you have these two polynomials, find the product of the two polynomials. (Hint: It might be easiest to make a third dynamic array.) Ensure that your formatting matches the examples below.

You can assume that the coefficients of the polynomials are all integers. You can also assume the polynomials have at least one coefficient

examples(a code should follow the exact output below.

 (C++ Dynamic arrays problem) Hello, I need help to write aprogram about polynomial multiplication by using a dynamic arrays.(Only using C++) Here'san instruction, please follow it thoroughly. For this problem, you must write

Example 1 (user input is underlined): How many coefficients are in the first polynomial? 3 What are the coefficients (lowest power first)? 3_21 How many coefficients are in the second polynomial? What are the coefficients (lowest power first)? 121 (3) (2) xA1(1)xA2 times (1) (2) xA1(1)xA2 3 (3) (8) xA1 (8) xA2 (4)xA3(1)xA4

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!