Question

John's Grades in 6 different courses are 48, 58, 96, 79, 57 and 88. Amy's grades in these courses are 95, 52, 82, 74, 76 and 58. Write a SINGLE script and run it to answer the following questions. a) To find and display the average of John's and Amy's grades. b) To find which person (John or Amy) got better grades. c) How many courses has Amy gotten better grades than John? d) How courses has John gotten grades greater than 60 e) To display Amy's grades which are less than or equal to 80. f) How many courses have both Amy and John gotten same grades? g) To display the grades in item d h) How many courses has Amy gotten grades exactly equal to 82? h) How many courses has Amy gotten grades exactly equal to 82? i) To display Amy's grades which are 82. j) To display Amy's grade which are not less than 60 nor greater than 80. k) To display Amy's grade which are not between 50 and 80.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10

Fig: 11

Fig: 12

Fig: 13