[SOLVED] CS 115 Lab 6

39.99 $

Category: Tags: , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab6-v1cmev.zip (713.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Lab Guide 06A

Lab Objectives: Two-dimensional lists, numpy, arrays.

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.

  • Lab6-v1cmev.zip