Tomodify the program in exercise 1 so that if there are no solutions in the given domain, the computer will print a message to this effect.
Explanation of Solution
Given:
The values of a, b, c and d are to be entered by the user.
Calculation:
The following is the required MODIFIEDBASICProgram-
10 PRINT “THIS PROGRAM WILL SOLVE INEQUALITY” 20 PRINT “OF THE FORM A*X+B <C” 30 INPUT “ENTER A, B AND C:” A, B, C$ 40 INPUT “ENTER DOMAIN SET”; D 50 PRINT “SOLUTION SET CONSISTS OF X SUCH THAT” 60 IF A<0 AND C<0 THEN PRINT “X>” (B+C)/A; 70 IF A<0 AND C>0 THEN PRINT “X>” (-C-B)/A; 80 IF A>0 AND C>0 THEN PRINT “X<” (C-B)/A; 90 IF A>0 AND C<0 THEN PRINT “X<” (-C-B)/A; 100 IF X<MIN (DOMAIN) OR X>MAX (DOMAIN) THEN PRINT “THERE IS NO SOLUTION FROM THE DOMAIN”. 110 END
DRY RUN of the program:-
SAMPLE OUTPUT:
THIS PROGRAM WILL SOLVE INEQUALITY
OF THE FORM A*X+B <C
ENTER A, B AND C
ENTER DOMAIN SET
SOLUTION SET CONSISTS OF X SUCH THAT
THERE IS NO SOLUTION FROM THE DOMAIN.
Chapter 2 Solutions
Algebra and Trigonometry: Structure and Method, Book 2
Additional Math Textbook Solutions
College Algebra in Context with Applications for the Managerial, Life, and Social Sciences (5th Edition)
A Graphical Approach to College Algebra (6th Edition)
College Algebra
Elementary Algebra
Graphical Approach To College Algebra
College Algebra (7th 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