Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

Write a 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 // SINIFKAPASITE #define STUDENT NUMBERLENGTH 10 // OGRENCINUMARAUZUNLUGU #define NAMELENGTH 25 // ADIUZUNLUGU #define COURSENAMELENGTH 58 // DERSADIUZUNLUGU #define COURSECODELENGTH 10 // DERSKODUZUNLUGU #define COURSESREGISTERED S // KAYITLIDERSLER #define MIDTERMEIGHT 39 // VIZEAGIRLIK #define FINALMEIGHT 30 // FINALAGIRLIK #define QUIZWEIGHT 20 1/ QUIZAGIRLIK #define HOMEWORKWEIGHT 28 // ODEVAGIRLIK typedef struct full Name 1/tan ada char *nane; I/adi char surname 1/sayadi name_t: typedef struct examGrades //sinav not double nidter; //vize double final; //final double quiz: //quiz double homework; 1/odev grades_t: typedef struct course Registered //kayitliDersler char courseName(COURSENAMELENGTH]: //ders adi char courseCode [COURSECOOE LENGTH //ders kodu grades_t grades; /otler char letterGrade [21: //herf notu double numericGrade /umerik notu courseReg_t; typedef struct student Info //ogrenci bilgi name_t student Name: //ogrenci ads char stNo; 1/ogrenci numara courseReg_t *courses [COURSESREGISTERED]; //dersler double spa: //ortalama student_ti typedef struct courseInto! //ders bilgi char courseName COURSENAMELENGTH]: //ders adi char courseCode COURSECODELENGTH]: //ders kodu student_t students [CLASSSIZE); //ogrenciler double course Average: //ders ortalama courses_t: your program perform functions to addStudent), addCourse). calculateStudent CourseGrade(). calculateStudentGPA). display Student Infor). displayCourseInto), printClass() and calculateCourse Average). Please remember that you are not allowed to use any global variables. All variables used must be local variables. Please detail variables as they appear in memory using a diagram. Please provide your flowcharts and technical explanations to the programs along with well documented source code files. Inside the main() function, along with other variables you need, use the variable courses t courseclass; to both populate the class data and student data, as well as to display them. Please note that a student cannot get a grade below or a grade above 100 for any exam and your program must make sure that input given by user is within the range. Please also note that letter grades are "AA" is 4.ce and awarded for a grade 100 90. "BA" 15 3.5 and awarded for a grade 85 - 89, "BB" is 3.88 and awarded for a grade 84 - 88, "C" is 2.50 and awarded for a grade 79 - 75, "CC" is 2.00 and awarded for a grade 74 - 70, "C" 15 1.58 and awarded for a grade 69-60, "00" is 1.69 and awarded for a grade 59 - 50 and "FF" is 8.ee and awarded for a grade 49 - 0. The GPA must be between 0.80 to 4.ce and should always be displayed in the correct format. THE CONDITIONS 1-write the code 2- flowchart 3-pseudocode + EXPLANATION OF THE CODE AND DIAGRAM Write a 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 // SINIFKAPASITE #define STUDENT NUMBERLENGTH 10 // OGRENCINUMARAUZUNLUGU #define NAMELENGTH 25 // ADIUZUNLUGU #define COURSENAMELENGTH 58 // DERSADIUZUNLUGU #define COURSECODELENGTH 10 // DERSKODUZUNLUGU #define COURSESREGISTERED S // KAYITLIDERSLER #define MIDTERMEIGHT 39 // VIZEAGIRLIK #define FINALMEIGHT 30 // FINALAGIRLIK #define QUIZWEIGHT 20 1/ QUIZAGIRLIK #define HOMEWORKWEIGHT 28 // ODEVAGIRLIK typedef struct full Name 1/tan ada char *nane; I/adi char surname 1/sayadi name_t: typedef struct examGrades //sinav not double nidter; //vize double final; //final double quiz: //quiz double homework; 1/odev grades_t: typedef struct course Registered //kayitliDersler char courseName(COURSENAMELENGTH]: //ders adi char courseCode [COURSECOOE LENGTH //ders kodu grades_t grades; /otler char letterGrade [21: //herf notu double numericGrade /umerik notu courseReg_t; typedef struct student Info //ogrenci bilgi name_t student Name: //ogrenci ads char stNo; 1/ogrenci numara courseReg_t *courses [COURSESREGISTERED]; //dersler double spa: //ortalama student_ti typedef struct courseInto! //ders bilgi char courseName COURSENAMELENGTH]: //ders adi char courseCode COURSECODELENGTH]: //ders kodu student_t students [CLASSSIZE); //ogrenciler double course Average: //ders ortalama courses_t: your program perform functions to addStudent), addCourse). calculateStudent CourseGrade(). calculateStudentGPA). display Student Infor). displayCourseInto), printClass() and calculateCourse Average). Please remember that you are not allowed to use any global variables. All variables used must be local variables. Please detail variables as they appear in memory using a diagram. Please provide your flowcharts and technical explanations to the programs along with well documented source code files. Inside the main() function, along with other variables you need, use the variable courses t courseclass; to both populate the class data and student data, as well as to display them. Please note that a student cannot get a grade below or a grade above 100 for any exam and your program must make sure that input given by user is within the range. Please also note that letter grades are "AA" is 4.ce and awarded for a grade 100 90. "BA" 15 3.5 and awarded for a grade 85 - 89, "BB" is 3.88 and awarded for a grade 84 - 88, "C" is 2.50 and awarded for a grade 79 - 75, "CC" is 2.00 and awarded for a grade 74 - 70, "C" 15 1.58 and awarded for a grade 69-60, "00" is 1.69 and awarded for a grade 59 - 50 and "FF" is 8.ee and awarded for a grade 49 - 0. The GPA must be between 0.80 to 4.ce and should always be displayed in the correct format. THE CONDITIONS 1-write the code 2- flowchart 3-pseudocode + EXPLANATION OF THE CODE AND DIAGRAM

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions