Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.

So if A = [90 100 60 60 80 60]

B = [90 75]

Solution Stats

253 Solutions

140 Solvers

Last Solution submitted on Feb 17, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers140

Suggested Problems

More from this Author23

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!