Skip to content

2013-2: Making The Grade

Write a dfn which returns the percent (from 0 to 100) of passing (65 or higher) grades in a vector of grades.

Examples:

      (your_function) 25 90 100 64 65
60
      (your_function) 50
0
      (your_function) 80 90 100
100
      (your_function) ⍳0 ⍝ all grades in an empty vector are passing
100
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub