Question: Write a C program using the macro definitions and structure definitions as detailed below to store data for courses offered at a department at a

 Write a C program using the macro definitions and structure definitions

Write a C program using the macro definitions and structure definitions as detailed below to store data for courses offered at a department at a university and the record of students registered to these courses. #define CLASSSIZE 35 #define STUDENTNUMBERLENGTH 10 #define NAMELENGTH 25 #define COURSENAMELENGTH 50 #define COURSECODELENGTH 10 #define COURSESREGISTERED 5 #define MIDTERMWEIGHT 30 #define FINALWEIGHT 30 #define QUIZWEIGHT 20 #define HOMEWORKWEIGHT 20 // SINIFKAPASITE // OGRENCINUMARAUZUNLUGU // ADIUZUNLUGU // DERSADIUZUNLUGU // DERSKODUZUNLUGU // KAYITLIDERSLER // VIZEAGIRLIK // FINALAGIRLIK // QUIZAGIRLIK // ODEVAGIRLIK typedef struct fullName{ char *name; char *surname; }name_t; //tam adi //adi // soyadi typedef struct examGrades { //sinav not double midterm; //vize double final; //final double quiz; //quiz double homework; //odev }grades_t; //kayitliDersler //ders adi //ders kodu /otler //herf notu /umerik notu typedef struct courseRegistered char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; grades_t grades; char letterGrade [2]; double numericgrade; }courseReg_t; typedef struct student Info{ name_t studentName; char *stNo; courseReg_t *courses [COURSESREGISTERED]; double gpa; }student_t; //ogrenci bilgi //ogrenci adi //ogrenci numara //dersler //ortalama typedef struct courseInfo{ char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; student_t students [CLASSSIZE]; double courseAverage; } courses_t; //ders bilgi //ders adi //ders kodu //ogrenciler //ders ortalama Write a C program using the macro definitions and structure definitions as detailed below to store data for courses offered at a department at a university and the record of students registered to these courses. #define CLASSSIZE 35 #define STUDENTNUMBERLENGTH 10 #define NAMELENGTH 25 #define COURSENAMELENGTH 50 #define COURSECODELENGTH 10 #define COURSESREGISTERED 5 #define MIDTERMWEIGHT 30 #define FINALWEIGHT 30 #define QUIZWEIGHT 20 #define HOMEWORKWEIGHT 20 // SINIFKAPASITE // OGRENCINUMARAUZUNLUGU // ADIUZUNLUGU // DERSADIUZUNLUGU // DERSKODUZUNLUGU // KAYITLIDERSLER // VIZEAGIRLIK // FINALAGIRLIK // QUIZAGIRLIK // ODEVAGIRLIK typedef struct fullName{ char *name; char *surname; }name_t; //tam adi //adi // soyadi typedef struct examGrades { //sinav not double midterm; //vize double final; //final double quiz; //quiz double homework; //odev }grades_t; //kayitliDersler //ders adi //ders kodu /otler //herf notu /umerik notu typedef struct courseRegistered char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; grades_t grades; char letterGrade [2]; double numericgrade; }courseReg_t; typedef struct student Info{ name_t studentName; char *stNo; courseReg_t *courses [COURSESREGISTERED]; double gpa; }student_t; //ogrenci bilgi //ogrenci adi //ogrenci numara //dersler //ortalama typedef struct courseInfo{ char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; student_t students [CLASSSIZE]; double courseAverage; } courses_t; //ders bilgi //ders adi //ders kodu //ogrenciler //ders ortalama

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!