5. Design an algorithm that asks the user for the name of a text file containing a grid of numbers and loads it into a 2D array of integers (think like an image without the color channel), then outputs the index (row, col) of the SMALLEST number in the array.

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter2: Systems Of Linear Equations
Section2.2: Direct Methods For Solving Linear Systems
Problem 2CEXP
icon
Related questions
Question

6

5. Design an algorithm that asks the user for the name of a text file containing a grid of numbers
and loads it into a 2D array of integers (think like an image without the color channel), then
outputs the index (row, col) of the SMALLEST number in the array.
Libraries:
Input:
Output:
Design Pattern:
Search
Find Min
Find Max
Find All
Principal Mechanisms (select all that apply):
Single Loop
Nested Loop
Conditional (if/else) statement
Indexing / Slicing
□split()
☐input ()
Process (as a concise and precise LIST OF STEPS / pseudocode):
(Assume libraries have already been imported.)
Transcribed Image Text:5. Design an algorithm that asks the user for the name of a text file containing a grid of numbers and loads it into a 2D array of integers (think like an image without the color channel), then outputs the index (row, col) of the SMALLEST number in the array. Libraries: Input: Output: Design Pattern: Search Find Min Find Max Find All Principal Mechanisms (select all that apply): Single Loop Nested Loop Conditional (if/else) statement Indexing / Slicing □split() ☐input () Process (as a concise and precise LIST OF STEPS / pseudocode): (Assume libraries have already been imported.)
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage