Concept explainers
a.
To run the program (5) to print the roots of the given equation.
a.
Explanation of Solution
Given:
The given
Calculation:
The following is the required BASIC Program-
10 INPUT “Enter the value of a”: a
20 INPUT “Enter the value of b”: b
30 INPUT “Enter the value of c”: c
40 LET
50 If
60 LET
70 LET
80 ELSE
90 LET
100 LET
110 PRINT “The first root is”:
120 PRINT “The second root is”:
130 END
DRY RUN of the program:-
INPUT:
Enter the value of a
Enter the value of b
Enter the value of c
OUTPUT:
The first root is
The second root is
b.
To run the program (5) to print the roots of the given equation.
b.
Explanation of Solution
Given:
The given quadratic equation is
Calculation:
The following is the required BASIC Program-
10 INPUT “Enter the value of a”: a
20 INPUT “Enter the value of b”: b
30 INPUT “Enter the value of c”: c
40 LET
50 If
60 LET
70 LET
80 ELSE
90 LET
100 LET
110 PRINT “The first root is”:
120 PRINT “The second root is”:
130 END
DRY RUN of the program:-
INPUT:
Enter the value of a
Enter the value of b
Enter the value of c
OUTPUT:
The first root is
The second root is
c.
To run the program (5) to print the roots of the given equation.
c.
Explanation of Solution
Given:
The given quadratic equation is
Calculation:
The following is the required BASIC Program-
10 INPUT “Enter the value of a”: a
20 INPUT “Enter the value of b”: b
30 INPUT “Enter the value of c”: c
40 LET
50 If
60 LET
70 LET
80 ELSE
90 LET
100 LET
110 PRINT “The first root is”:
120 PRINT “The second root is”:
130 END
DRY RUN of the program:-
INPUT:
Enter the value of a
Enter the value of b
Enter the value of c
OUTPUT:
The first root is
The second root is
Chapter 7 Solutions
Algebra and Trigonometry: Structure and Method, Book 2
Additional Math Textbook Solutions
Thinking Mathematically (6th Edition)
University Calculus: Early Transcendentals (4th Edition)
Elementary Statistics
Calculus for Business, Economics, Life Sciences, and Social Sciences (14th Edition)
Elementary Statistics: Picturing the World (7th Edition)
Pre-Algebra Student 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