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

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 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

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

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

What about leadership lessons from particularly good or bad bosses?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago