I'm fairly new to programming and i have an exam in the morning. Need some help!

So my Student Instructor sent me a practice exam an hour ago and my exam is in the morning I'm having trouble figuring this problem out.


Write a function called getGrades(names, grades) that will ask the user for names and grades (which may be decimal numbers) and return the data back to the calling program in two arrays. Your function should first ask for the number of students. Then it should ask for each name and grade pair. The function should return the count of the number of students read and it should pass back
the names and grades array information to the calling program via its parameters.

I have an idea of how I am supposed to do it but i cannot put it together.
Hi,

I have an idea of how I am supposed to do it but i cannot put it together.

If I am understanding correctly, draw yourself a picture. This interacts with this, this depends on this, ect. It may sound silly but seeing how things should interact helps.
Topic archived. No new replies allowed.