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
// 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 11 #define NAMELENGTH 25 // #define COURSENAMELENGTH 50 #define COURSECODELENGTH 10 11 #define COURSESREGISTERED 5 #define MIDTERMWEIGHT 30 #define FINALWEIGHT 30 #define QUIZWEIGHT 20 #define HOMEWORKWEIGHT 20 1/ typedef struct fullName{ char *name; char surname; I name_t; typedef struct examGrades{ // double midterm; double final; double quiz; double homework; }grades_t; typedef struct courseRegiste! char courseName COURSENAMELENGTH): // char courseCode [COURSECODELENGTH); grades_t grades; 11 char letterGrade [2); double numericGrade; courseReg_t; typedef struct student Info name_t studentName; char stNo; courseReg_t *courses (COURSESREGISTERED); 11 double gpa; student_t; typedef struct courseInfo 1/d char courseName [COURSENAMELENGTH); 1/d char courseCode [COURSECODELENGTH); 1/di student_t students (CLASSSIZE); double course Average; 1/di } courses_t
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