Hi,
or in other way, not elegant but I assume from the light testing it is
working
∇r←grade marks
code←'FDCCBBAA'
r← code[⌊(4+marks)÷5]
grade 10 10⍴⍳100
FF
FF
FF
FF
FF
FF
FD
CC
BB
AA
HiH
Regards,
Hi,
how about
∇find_grade[⎕]∇
∇
[0] r←find_grade g;gm;gl
[1] gm←0 65 70 80 90
[2] gl←'FDCBA'
[3] r←,¨gl[+/[1]gm ∘.≤ g]
∇
m,find_grade m←5 2⍴0 64 65 69 70 79 80 89 90 100
0 64 F F
65 69 D D
70 79 C C
80 89 B B
90 100 A A
Regards
Hans-Peter
Am 14.04.2
On Tue, Apr 14, 2020 at 05:40:26PM +0200, Otto Diesenbacher-Reinmüller wrote:
2 making the grade
(...)
Any hint?
I think all those ranges are mostly a distraction, because it's nowhere
said you need to handle out-of-range arguments in any graceful way.
I would start with ⍵>table[;2] which is
Hi APLers,
let's start with the second challenge:
2 making the grade
(https://www.dyalog.com/uploads/files/student_competition/2019_problems_phase1.pdf)
"Write a function that, given an array of integer testscores in the
inclusive range 0–100, returns anidentically-shaped array of the
correspond