Question: python code 1: Write a Python program using NumPy that does the following: 1. Create two NumPy arrays, grades and weights, each with 5 elements.

python code python code 1: Write a Python program using NumPy that does the

1: Write a Python program using NumPy that does the following: 1. Create two NumPy arrays, grades and weights, each with 5 elements. The grades array represents test scores (e.g., [85, 90, 78, 92, 88]), and the weights array represents the corresponding weight of each test (e.g., [0.2, 0.1, 0.15, 0.25, 0.2]). 2. Calculate and print the weighted average of the test scores using the formula: weighted_average =( grades [0] * weights [0])+( grades [1] * weights [1])++ (grades[n] * weights[n]). 3. Create a new NumPy array called adjusted_grades that increases each test score in the grades array by 5 points. 2: Write a Python program using NumPy that does the following: 1. Create a NumPy array with 5 rows and 4 columns, filled with random integer values between 1 and 100 . 2. Calculate and print the minimum value in each row and the maximum value in each column

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!