I am trying to write a program for my school assignment, but this programming thing is extremely hard, so I am looking some help in getting it done. The program i am writing is a basic grading system, where it should show the students class, and grade, and also calculate the students semester avg, exam grade and class grade. the semester avg is calculated by totaling the 2 exam grades and 3 class grades inputted and divide it by two to get the semester avg.
here is the program
#include<stdio.h>
#include<conio.h>
#include<string.h>
{
char studentname[31];
}
void Cal_semester_Grade(char*);
void Class_Grade(int,int,int);
void Exam_Grade(int,int);
void search_name(char);
void menu();
main()
{
int gradeave[30];
int choice,i;
int grade1, grade2, grade3;
char studname[30][25];
char classname[5];
menu()
printf("Please enter choice");
scanf ("%d",&choice);
switch (choice)
{
case 1:
for(i=0;i<30;i++)
{
printf("\n Please enter students name:");
scanf("%s",&studname[i]);
printf("\n Please enter students class name:");
scanf("%s",&classname);
Cal_semester_Grade(char studname[][30]);
}
Class_Grade();
break;
case 2:Cal_Semester_Grade();
break;
case 3:search_name();
break;
case 4:Menu();
default:
printf("You have entered an ivalid choice");
getch();
}
void menu()
{
printf ("**************WELCOME TO MAIN MENU*************");
printf ("\n1.Calculate semester average");
printf ("\n2.Calculate class grade");
printf ("\n3.Calculate Exam grade");
printf ("menu");
}
void Class_Grade()
{
printf("Please enter Class grade")
scanf("%d%d%d",&grade1,&grade2,&grade3)
void Cal_semester_Grade()
{
printf("Please enter Exam grade");