A function to create a two dimensional list of size n*m (n rows, m columns). Fill the list with random numbers in the range [1,10]. The function can be called as given below: myList = create(n,m) the function returns the created list. A function to find the min value in the list (I wrote the max in the lecture), a call to the function is given below: Max = max(myList) A main function, which first allows the user to reads n and m. No need to perform validation (I assume you know how because we did validate input many times). Then call function create with the n and m, follow that by calling function min. After that display the output (list contents, row by row, and the max).

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18PE
icon
Related questions
Question

Python 

Imming Assighment
Write the following three functions:
1. A function to create a two dimensional list of size n*m (n rows, m columns). Fill the list with
random numbers in the range [1,10]. The function can be called as given below:
myList = create(n,m)
the function returns the created list.
2. A function to find the min value in the list (I wrote the max in the lecture), a call to the function
is given below:
Max = max(myList)
3. A main function, which first allows the user to reads n and m. No need to perform validation (I
assume you know how because we did validate input many times). Then call function create
with the n and m, follow that by calling function min. After that display the output (list contents,
row by row, and the max).
Name the file pr6. I will import pr6 and call main to check and grade the code.
Transcribed Image Text:Imming Assighment Write the following three functions: 1. A function to create a two dimensional list of size n*m (n rows, m columns). Fill the list with random numbers in the range [1,10]. The function can be called as given below: myList = create(n,m) the function returns the created list. 2. A function to find the min value in the list (I wrote the max in the lecture), a call to the function is given below: Max = max(myList) 3. A main function, which first allows the user to reads n and m. No need to perform validation (I assume you know how because we did validate input many times). Then call function create with the n and m, follow that by calling function min. After that display the output (list contents, row by row, and the max). Name the file pr6. I will import pr6 and call main to check and grade the code.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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