a.
Torun the program for the given input for the program in exercise 1.
a.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
b.
To run the program for the given input for the program in exercise 1.
b.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
b.
To run the program for the given input for the program in exercise 1.
b.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
c.
To run the program for the given input for the program in exercise 1.
c.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
d.
To run the program for the given input for the program in exercise 1.
d.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
e.
To run the program for the given input for the program in exercise 1.
e.
Explanation of Solution
Given:
The input is
Calculation:
The following is the required BASICProgram-
10 INPUT “Enter the First Number”: A
20 INPUT “Enter the Second Number”: B
30 IF A>B THEN
40 PRINT A ">" B
50 ELSE IF A<B
60 PRINT A "<" B
70 ELSE
80 PRINT A”=”B.
DRY RUN of the program:-
INPUT:
OUTPUT:
Chapter 1 Solutions
Algebra and Trigonometry: Structure and Method, Book 2
Additional Math Textbook Solutions
University Calculus: Early Transcendentals (4th Edition)
Thinking Mathematically (6th Edition)
Elementary Statistics (13th Edition)
Elementary 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