To write a BASIC program to add two polynomials.
Explanation of Solution
Given:
The given polynomials are
Calculation:
The following is the required BASICProgram-
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
Elementary Statistics
College Algebra with Modeling & Visualization (5th Edition)
Thinking Mathematically (6th Edition)
Elementary Statistics: Picturing the World (7th Edition)
Intro Stats, Books a la Carte Edition (5th Edition)
Elementary Statistics (13th 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