Concept explainers
To find:A BASIC program to solve the equation of form
the equation
Explanation of Solution
Giveninformation: A linear equation of form
BASIC program.
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
is:
10 PRINT “Program to solve equationAx+B=Cx+D”;
20 PRINT “Enter values of A , B , C and D .“;
30 LET x=0;
40 INPUT A , B , C , D ;
50 A*x-C*x=D-B;
60 (A-C)*x=(D-B);
70 x=(D-B)/(A-C);
80 PRINT “Solution of given equation is x=0”; x
90 IF A-C=0 THEN 100;
100 PRINT “Given equation has NO SOLUTION”
110 END
Output: Program to solve equation
Enter values of A , B , C and D .
Solution to given equation is
Here line 10-20, print different messages. Line 40 asks the values of constants and coefficients used in the equation. Lines 50-70 solve the equation for unknown variable x. LLINE 80 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
Pre-Algebra Student Edition
Elementary Statistics: Picturing the World (7th Edition)
Calculus for Business, Economics, Life Sciences, and Social Sciences (14th Edition)
Algebra and Trigonometry (6th Edition)
Introductory Statistics
Basic Business Statistics, Student Value 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