I'm trying to write a program in which allows the user to input grades in one function, view the grades inputted in another, change the grade in another, and lastly view the grades based off of the low and high that the user puts in. So far, I need help getting the first two functions working (hoping the the other two will come along once i figure these two out.

I need help getting the grades that are inputted in getgrades to appear in showgrades. I don't know if it's a problem with my grades array or if it is the way that I have those two functions set up. Please help.

Code:
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<string.h>


int getgrades(double *grades);
int menu(void);
void showgrades(double *grades);


int main(void)
{
    double grades[100];    
      
int key, more = 1;
do
{
      key = menu();
      switch(key)
      {
      case 1: getgrades(grades); break;
      case 2: showgrades(grades); break;
      case 3: changegrades(); break;
      case 4: findgrades(); break;
      case 5: more = quit(); break;
      default: printf("\nError in selection. Press Enter to Continue\a");
      getchar();
      }
}
while(more);
return 0;
}


int menu()
{
system("cls");
int selection;

printf("1 = Get Grades\n");
printf("2 = Show Grades\n");
printf("3 = Change Grades\n");
printf("4 = Find Grades\n");
printf("5 = Quit\n");

/*For user selection*/
printf("\n\nEnter your selection here: ");
scanf("%d%*c", &selection);

return(selection);
}

int getgrades(double *grades)
{
    int count = 0;
     system("cls");
     printf("Enter Grades\n\n");
     
do
{
count++;
printf("Enter Grade or Press 0 to Exit:");
scanf("%lf%*c", grades);
}
while(*grades > 0);
printf("%d", count);
getchar();
return(count);
}



void showgrades(double *grades)
{
system("cls");
int i;
     
     printf("Inputed Grades");
     printf("\n\nPosition_______Grade\n");
     for(i=0; i < 20; i++)
     {
     printf("%d%18.2lf\n", i, *grades);
}
printf("Press Enter to Continue");
getchar();
}




\* From this point on I plan on figuring it out myself, I need help before this though..."*\

changegrades()
{
int position;              
              
system("cls");              
printf("Change Grades \n\n");

do
{
printf("Enter the position of the Grade you want to change (or 0 to quit):");
scanf("%d%*c", &position);
}
while(position > 0);
return(0);
}


findgrades()
{
int low, high; 
            
system ("cls");
printf("Enter the lowest grade to locate: ");
scanf("%d%*c", &low);
printf("Enter the highest grade to locate: ");
scanf("%d%*c", &high);
return(0);
}


int quit()
{
printf("\nPress Enter to Continue");
getchar();
return 0;
}