Concept explainers
To write: a program to check whether the given number is positive or not.
Answer to Problem 3E
Checks if the entered number is positive or negative.
Explanation of Solution
Concept used: Use different syntax that is used to PRINT, INPUT IF…ELSE and do other operations while writing required BASIC program.
BASIC program to check if the given numbers are positive or not:
10 CLC
20 LET “
30 PRINT “Enter an integer: “;
40 FOR
50 IF
60 PRINT “Integer is Positive”
70 IFELSE
80 PRINT “Integer is Negative”
90 RETURN 0
100 END
Here line 30, prints different messages. Line 20 sets
Enter an integer:
Integer is positive.
Enter an integer:
Integer is negative.
Conclusion: Programs checks if the entered number is positive or negative.
Chapter 5 Solutions
Algebra: Structure And Method, Book 1
Additional Math Textbook Solutions
Intro Stats, Books a la Carte Edition (5th Edition)
Elementary Statistics (13th Edition)
A First Course in Probability (10th Edition)
Calculus: Early Transcendentals (2nd Edition)
Calculus for Business, Economics, Life Sciences, and Social Sciences (14th Edition)
A Problem Solving Approach To Mathematics For Elementary School Teachers (13th Edition)
- Solutions of inequalitie Google Classroom Mic Is (-3, 2) a solution of 7x+9y > -3? Choose 1 answer: A Yes B No Related content ▶6:06 Testing solutions to inequalities 2 of 4arrow_forwardAre natural logarithms used in real life ? How ? Can u give me two or three ways we can use them. Thanksarrow_forward?arrow_forward
- Solve the equation. Write the smaller answer first. 2 (x-6)² = 36 x = Α x = Previous Page Next Pagearrow_forwardWrite a quadratic equation in factored form that has solutions of x = 2 and x = = -3/5 ○ a) (x-2)(5x + 3) = 0 ○ b) (x + 2)(3x-5) = 0 O c) (x + 2)(5x -3) = 0 ○ d) (x-2)(3x + 5) = 0arrow_forwardA vacant lot is being converted into a community garden. The garden and a walkway around its perimeter have an area of 690 square feet. Find the width of the walkway (x) if the garden measures 14 feet wide by 18 feet long. Write answer to 2 decimal places. (Write the number without units). Hint: add 2x to each of the garden dimensions of 14 x 18 feet to get the total area for the length multiplied by width.arrow_forward
- Solve the rational equation 14 1 + x-6 x x-7 x-7 ○ a) x = 1, x = 8 ○ b) x = 1 ○ c) x = 7 ○ d) x = 1, x = 7arrow_forwardSolve the absolute inequality | x + 5 > 3 ○ a) (-∞, -8] U[-2, ∞0) ☐ b) (-8, -2) c) (-2, ∞0) ○ d) (-∞, - 8) U(-2, ∞0)arrow_forward1) Listen Describe the error in the problem X 3 X x 3 - 2 = 25x = 0 25x 25 x = ±5arrow_forward
- 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