To write a BASIC program to add two polynomials.
Explanation of Solution
Given:
The given polynomials are
Calculation:
The following is the required BASIC Program-
10 INPUT “Enter the degree of first polynomial”:
20 INPUT “Enter the degree of second polynomial”:
30 INPUT “Enter the coefficients of first polynomial from least to highest degree”
40 FOR
50 READ
60 NEXT
70 INPUT “Enter the coefficients of second polynomial from least to highest degree”
80 FOR
90 READ
100 NEXT
110 FOR
120 SUM
130 PRINT SUM
140 NEXT
150 END
DRY RUN of the program:-
INPUT:
Enter the degree of first polynomial
Enter the degree of second polynomial
Enter the coefficients of first polynomial from least to highest degree
Enter the coefficients of second polynomial from least to highest degree
OUTPUT:
Hence the sum of polynomial is
Chapter 4 Solutions
Algebra: Structure And Method, Book 1
Additional Math Textbook Solutions
A Problem Solving Approach To Mathematics For Elementary School Teachers (13th Edition)
University Calculus: Early Transcendentals (4th Edition)
Elementary Statistics (13th Edition)
Calculus: Early Transcendentals (2nd Edition)
Precalculus
Thinking Mathematically (6th Edition)
- Algebra and Trigonometry (6th Edition)AlgebraISBN:9780134463216Author:Robert F. BlitzerPublisher:PEARSONContemporary Abstract AlgebraAlgebraISBN:9781305657960Author:Joseph GallianPublisher:Cengage LearningLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Algebra And Trigonometry (11th Edition)AlgebraISBN:9780135163078Author:Michael SullivanPublisher:PEARSONIntroduction to Linear Algebra, Fifth EditionAlgebraISBN:9780980232776Author:Gilbert StrangPublisher:Wellesley-Cambridge PressCollege Algebra (Collegiate Math)AlgebraISBN:9780077836344Author:Julie Miller, Donna GerkenPublisher:McGraw-Hill Education