What is the error in the following pseudocode? // The function fillArray is to fill a rectangular 2D array with the passed rows and columns with random // values from 10 to 99. Module fillArray(Integer rows, Integer columns) Declare Integer values[columns][rows] for i = 0 to rows for j = 0 to columns set values[i][j] = random(10,99) end for end for end Module Type a response U
What is the error in the following pseudocode? // The function fillArray is to fill a rectangular 2D array with the passed rows and columns with random // values from 10 to 99. Module fillArray(Integer rows, Integer columns) Declare Integer values[columns][rows] for i = 0 to rows for j = 0 to columns set values[i][j] = random(10,99) end for end for end Module Type a response U
Chapter8: Arrays
Section: Chapter Questions
Problem 17RQ
Related questions
Question
Need help! Wheres the error in the pseudocode?
![What is the error in the following pseudocode?
// The function fillArray is to fill a rectangular 2D array with the passed rows and columns
with random
// values from 10 to 99.
Module fillArray(Integer rows, Integer columns)
Declare Integer values[columns][rows]
for i = 0 to rows
for j = 0 to columns
set values[i][j] = random(10,99)
end for
end for
end Module
Type a response
U](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe9220a27-0675-4410-b8f4-21c5a7e08562%2Ffd7a1a83-07e0-4d0b-b8f6-33a1c03566da%2Fxdy3exa_processed.jpeg&w=3840&q=75)
Transcribed Image Text:What is the error in the following pseudocode?
// The function fillArray is to fill a rectangular 2D array with the passed rows and columns
with random
// values from 10 to 99.
Module fillArray(Integer rows, Integer columns)
Declare Integer values[columns][rows]
for i = 0 to rows
for j = 0 to columns
set values[i][j] = random(10,99)
end for
end for
end Module
Type a response
U
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr