If i have 2 parallel arrays. One is is short[] and other String[]. short has a range of marks. short[95, 96, 95, 99, 100]. String has names of students [Mark, Steve, Emma, Rachael, Justin] They have already been declared and are corresponding. I know how to sort alphabetically and according marks. The question asks me to print out " * " for the times a student has received a grade. The user does not put any input in. for example: This would be the output.
100 = * (As only 1 person got a 100)
99 = *
96 = *
95 = **
I have to get to that output without any user inputs. I kinda think i have an idea of how to do it but im pretty lost. I dont even know how to start. All i know is a counter has to be used but that would only work if a user inputs a mark. I dont know how to do it without any input.