Torun the given program to solve given inequality.
Explanation of Solution
Given:
The given inequality is
Calculation:
The given inequality can be rewritten as-
The following is the givenBASICProgram-
10 PRINT “THIS PROGRAM WILL SOLVE INEQUALITY” 20 PRINT “OF THE FORM ABS (A*X+B) SIGN C” 30PRINT “WITH A NOT ZERO, THE SIGN IS <OR >”. 40 INPUT “ENTER A, B, C, AND THE SIGN: “A, B, C, S$ 50 IF S$=”<” AND C<=0 THEN 60 55 PRINT “SOLUTION SET CONSISTS OF X SUCH THAT” 60 IF S$=”<” AND A>0 AND C>0 THEN PRINT (-C-B)/A;”<XAND X><”;(C-B)/A 70 IF S$=”<” AND A<0 AND C>0 THEN PRINT (-C-B)/A;”<XAND X><”;(-C-B)/A 80 IF S$=”>” AND A>0 AND C>=0 THEN PRINT “X<”;(-C-B)/A;” OR X>”;(C-B)/A 90 IF S$=”>” AND A<0 AND C>=0 THEN PRINT “X<”;(C-B)/A;” OR X>”;(-C-B)/A 100 IF S$=”>” AND C>0 THEN PRINT “X IS ANY REAL NUMBER” 110 IF S$=”<” AND C<=0 THEN PRINT “THERE IS NO SOLUTION” 120 END
DRY RUN of the program:-
SAMPLE OUTPUT:
THIS PROGRAM WILL SOLVE INEQUALITY
OF THE FORM ABS (A*X+B) SIGN C
WITH A NOT ZERO, THE SIGN IS< OR >
ENTER A, B, C, AND THE SIGN: “A, B, C, S
SOLUTION SET CONSISTS OF X SUCH THAT
Chapter 2 Solutions
Algebra and Trigonometry: Structure and Method, Book 2
Additional Math Textbook Solutions
University Calculus: Early Transcendentals (4th Edition)
Calculus: Early Transcendentals (2nd Edition)
Elementary Statistics: Picturing the World (7th Edition)
A Problem Solving Approach To Mathematics For Elementary School Teachers (13th 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