I need some help with my first Programming lab, I have an idea of what the issues are, I know most of them occur with my bubble sort in the sortedArray function.
What problems are you having? Is it sorting in reverse order? Is it sending random colored pages to your print queue? Is it cancelling your appointments? You need to be specific.
Line 5: main must return int
Line 26: That isn't how you declare a function. Look at line 13 to see how you did it before.
What happens if there are more than 20 grades?
Your grades are doubles but your median function returns an integer. (Also, your median function doesn't have access to the grades array in the first place).