Concept explainers
a)
To find: ABASIC program to solve the equation of form
a)
Answer to Problem 3E
Output: Solution of the given equation is
Explanation of Solution
Given information: A linear equation of form
Concept used: Use different syntax that are used to PRINT, INPUT and do other operations to solve a linear equation in one variable, while writing required BASIC program.
BASIC program to solve given equation of form
10 PRINT “Program to solve equation
20 PRINT “Enter values of A , B , and C :“;
30 LET x =0;
40 INPUT A , B , C ;
50
60
70 PRINT “Solution of given equation is
90 PRINT “Given equation has NO SOLUTION”
100 END
Output: Program to solve equation
Enter values of A , B , and C : 1 8 10
Solution of the given equation is x = 2 and x = -2
Here line 10-20, print different messages. Line 40 asks the values of constants and coefficients used in the equation. Lines 50-60 solve the equation for unknown variable x . LINE 70 returns the result of the equation. And line 90 implies the condition for equation having NO SOLUTION.
Get the solution of the given equation
Conclusion: On running the above program, the solution of the equation
b)
To find: A modified BASIC program to solve the equation of form
b)
Answer to Problem 3E
Output of the above program is NO SOLUTION.
Explanation of Solution
Given information: A linear equation of form
Concept used: Use different syntax that are used to PRINT, INPUT and do other operations to solve a linear equation in one variable, while writing required BASIC program.
BASIC program to solve given equation of form
10 PRINT “Program to solve equation
20 PRINT “Enter values of A , B , and C .“;
30 LET x = 0;
40 INPUT A , B , C ;
50
60
70 PRINT “Solution of given equation is x=”;
80 IF A = 0 THEN 90;
90 PRINT “Given equation has NO SOLUTION.”
100 END
Output: Program to solve equation
Enter values of A , B , and C : 1 10 8
Given equation has NO SOLUTION.
Here line 10-20, print different messages. Line 40 asks the values of constants and coefficients used in the equation. Lines 50-60 solve the equation for unknown variable x . LINE 70 returns the result of the equation. And line 90 implies the condition for equation having NO SOLUTION.
Get the solution of the given equation
Conclusion: On running the above program, the solution of the equation
c)
To find: A BASIC program to solve the equation of form
the equation
c)
Answer to Problem 3E
Solution of the given equation is
Explanation of Solution
Given information: A linear equation of form
Concept used: Use different syntax that are used to PRINT, INPUT and do other operations to solve a linear equation in one variable, while writing required BASIC program.
BASIC program to solve given equation of form
10 PRINT “Program to solve equation
20 PRINT “Enter values of A , B , and C .“;
30 LET x=0;
40 INPUT A , B , C ;
50
60
70 PRINT “Solution of given equation is x=”;
80 IF A=0 THEN 90;
90 PRINT “Given equation has NO SOLUTION”
100 END
Output: Program to solve equation
Enter values of A , B , and C : 6 2 5
Solution of the given equation is x = 0.5 and x = - 0.5
Here line 10-20, print different messages. Line 40 asks the values of constants and coefficients used in the equation. Lines 50-60 solve the equation for unknown variable x . LINE 70 returns the result of the equation. And line 90 implies the condition for equation having NO SOLUTION.
Get the solution of the given equation
Conclusion: On running the above program, the solution of the equation
Chapter 3 Solutions
Algebra: Structure And Method, Book 1
Additional Math Textbook Solutions
College Algebra (7th Edition)
Introductory Statistics
Algebra and Trigonometry (6th Edition)
Elementary Statistics (13th Edition)
Elementary Statistics
Calculus: Early Transcendentals (2nd 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