30 GeD 40 Print 50 Print 60 Data True False

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
I need the answer as soon as possible
By using subroutine find the even numbers in the second quarter of
matrix A(6,6).
10 DIM A(6*6)
20 FOR I=1 TO 6
30 FOR J-1 TO 6
40 INPUT AIJ)
50 NEXT J NEXTI
60 FOR I= 1 TO 3
70 FOR J-4 TO 6
80 GOSUB 150
90 NEXT J: NEXTI
100 END
150 IF A(IJ) MOD 2-0 THEN PRINTA(IJ)
160 RETURN
10 DIM A(6,6)
20 FOR I-1 T0 6
30 FOR J=1 TO 6
40 INPUT A(I J)
SO NEXTE NEXTI
60 FOR I=I TO3
70 FOR J=4 TO 6
80 GOSUB 150
90 NEXTJ NEXTI
100 END
150 IF AL) MOD 2-0 THEN PRINTA(IJ)
160 RETURN
Option 1
Option 2
10 DIM A(6,6)
20 FOR I-1 TO6
30 FOR J-1 TO 6
40 INPUT A(I J)
50 NEXT J NEXTI
60 FOR I- 1 TO 3
70 FOR J-4 TO 6
80 GOSUB 150
90 NEXT J: NEXTI
100 END
150 IF AGJ) MOD 2-0 THEN PRINTA(IJ)
160 RETURN
10 DIM A(6,6)
20 FOR I=1 TO 6
30 FOR J-1 TO 6
40 INPUT AI)
50 NEXTJ. NEXTI
60 FOR I=1 TO 3
70 FOR J=1 TO 6
80 GOSUB 150
90 NEXT J: NEXTI
100 END
150 IF AIJ) MOD 2-0 THEN PRINTAI)
160 RETURN
O Option 3
Option 4
10 Readx1,x2,x3,x4
20 Ar= (x1+x2+x3+x4)/4
30 Ge-(x1*x2*x3*x4)^(1/4)
40 Print "arithmetic mean is";ar
50 Print "geometric mean is":ge
60 Data 50,67,80,77
O True
False
Transcribed Image Text:By using subroutine find the even numbers in the second quarter of matrix A(6,6). 10 DIM A(6*6) 20 FOR I=1 TO 6 30 FOR J-1 TO 6 40 INPUT AIJ) 50 NEXT J NEXTI 60 FOR I= 1 TO 3 70 FOR J-4 TO 6 80 GOSUB 150 90 NEXT J: NEXTI 100 END 150 IF A(IJ) MOD 2-0 THEN PRINTA(IJ) 160 RETURN 10 DIM A(6,6) 20 FOR I-1 T0 6 30 FOR J=1 TO 6 40 INPUT A(I J) SO NEXTE NEXTI 60 FOR I=I TO3 70 FOR J=4 TO 6 80 GOSUB 150 90 NEXTJ NEXTI 100 END 150 IF AL) MOD 2-0 THEN PRINTA(IJ) 160 RETURN Option 1 Option 2 10 DIM A(6,6) 20 FOR I-1 TO6 30 FOR J-1 TO 6 40 INPUT A(I J) 50 NEXT J NEXTI 60 FOR I- 1 TO 3 70 FOR J-4 TO 6 80 GOSUB 150 90 NEXT J: NEXTI 100 END 150 IF AGJ) MOD 2-0 THEN PRINTA(IJ) 160 RETURN 10 DIM A(6,6) 20 FOR I=1 TO 6 30 FOR J-1 TO 6 40 INPUT AI) 50 NEXTJ. NEXTI 60 FOR I=1 TO 3 70 FOR J=1 TO 6 80 GOSUB 150 90 NEXT J: NEXTI 100 END 150 IF AIJ) MOD 2-0 THEN PRINTAI) 160 RETURN O Option 3 Option 4 10 Readx1,x2,x3,x4 20 Ar= (x1+x2+x3+x4)/4 30 Ge-(x1*x2*x3*x4)^(1/4) 40 Print "arithmetic mean is";ar 50 Print "geometric mean is":ge 60 Data 50,67,80,77 O True False
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education