Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

5. Prepare for the role of interviewee

Answered: 1 week ago