Question: import numpy as np # Read two sets of scores from user input scores 1 = input ( Enter the scores for the first

import numpy as np # Read two sets of scores from user input scores1= input("Enter the scores for the first set of students: ").split() scores2= input("Enter the scores for the second set of students: ").split() # Convert the input scores to integer values scores1= np.array(scores1, dtype=int) scores2= np.array(scores2, dtype=int) # Calculate the average of the two scores for each student average_scores =(scores1+ scores2)/2 # Count the number of average scores that are 80 or higher count = np.count_nonzero(average_scores >=80) # Output the average scores and the count print("Average scores:", average_scores) print("Number of students who received 80 and above:", count)

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 Programming Questions!