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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 17RQ
icon
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
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
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr