Question: For the following program segment, m and n are integer variables. The variable A is a two-dimensional array A[1, 1], A[1, 2], . . .
for m : = 1 to 10 do
for n : = 1 to 20 do
A [m, n] : = m + 3 * n
Write the following statements in symbolic form. (The universe for the variable m contains only the integers from 1 to 10 inclusive; for n the universe consists of the integers from 1 to 20 inclusive.)
(a) All entries of A are positive.
(b) All entries of A are positive and less than or equal to 70.
(c) Some of the entries of A exceed 60.
(d) The entries in each row of A are sorted into (strictly) ascending order.
(e) The entries in each column of A are sorted into (strictly) ascending order.
(f) The entries in the first three rows of A are distinct.
Step by Step Solution
3.47 Rating (167 Votes )
There are 3 Steps involved in it
a m n Am n 0 b m n 0 Am n 70 c m ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
954-M-L-A-L-S (7361).docx
120 KBs Word File
