Open QDBordtoshred opened 8 months ago
The requirement for assignment is a Jupyter Notebook that runs the code, correctly identifying the FRQ type, and a reflection for the problem.
0.6/0.9
Your code should be in a Jupyter Notebook, and you show have an issue with the connection between the FRQ and PBL. For this FRQ, I will give you a score of 0.63/0.9
(a) arraySum method
The arraySum method takes a one-dimensional array as input and calculates the sum of its entries using a simple for-each loop.
(b) rowSums method
The rowSums method iterates through each row of the two-dimensional array arr2D and uses the previously defined arraySum method to calculate the sum of each row. The sums are then stored in a one-dimensional array.
(c) isDiverse method
The isDiverse method calculates the row sums using the rowSums method and then checks if there are any duplicate row sums. If there are, it returns false, indicating that the array is not diverse. Otherwise, it returns true.