In Python: Write a program that reads two sets of exam scores of five students from user input and stores the scores into two NumPy arrays (exam1 and exam2). The program then calculates the average of the two exams for each of the five students and outputs the average scores as a NumPy array. The program finally counts the number of average scores that are 80 or higher and outputs the count. Ex: If the input of the two sets of scores are: 75 80 65 82 92 88 85 75 95 73 where [75 80 65 82 92] is stored in NumPy array exam1, and [88 85 75 95 73] is stored in NumPy array exam2. The program then outputs: Average scores: [81.5 82.5 70. 88.5 82.5] Number of students who received 80 and above: 4
In Python: Write a program that reads two sets of exam scores of five students from user input and stores the scores into two NumPy arrays (exam1 and exam2). The program then calculates the average of the two exams for each of the five students and outputs the average scores as a NumPy array. The program finally counts the number of average scores that are 80 or higher and outputs the count.
Ex: If the input of the two sets of scores are:
75 80 65 82 92 88 85 75 95 73
where [75 80 65 82 92] is stored in NumPy array exam1, and [88 85 75 95 73] is stored in NumPy array exam2. The program then outputs:
Average scores: [81.5 82.5 70. 88.5 82.5] Number of students who received 80 and above: 4
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images