[SOLVED] CS115 Lab Guide 06A-Two-dimensional lists, numpy, arrays

40.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

 

1. Write a function, minMaxArray() that takes 2, two-dimensional lists, list1 and list2 as parameters. The function should compare each element in the lists, and place the smaller of each element in the first list (list1), and the larger in the second(list2). If the two elements are the same, both arrays should contain 0 for the given element.

Write a script to test your function. See the sample run below.

Sample run:

Before Calling Function:
[[8, 3, 5], [4, 6, 2], [11, 12, 20]]
[[7, 2, 6], [5, 6, 30], [1, 15, 24]]
After calling function:
[[7, 2, 5], [4, 0, 2], [1, 12, 20]]
[[8, 3, 6], [5, 0, 30], [11, 15, 24]]
2. Download the file, Lab06AQ2.pdf, and create a Jupyter Notebook file that has the appearance and functionality of the given pdf.
3. Download the file, Lab06AQ3.ipynb, and complete the question given in the notebook.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.