Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started