Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please read carefully PLEASE SUBMIT ONLY 2 FILES - FIRST ONE IS THE PDF FILE THAT SHOULD CONTAINS ALL NECESSARY DIAGRAMS, ALONG WITH DISCUSSIONS AND

Please read carefully

image text in transcribedimage text in transcribedimage text in transcribed

PLEASE SUBMIT ONLY 2 FILES - FIRST ONE IS THE PDF FILE THAT SHOULD CONTAINS ALL NECESSARY DIAGRAMS, ALONG WITH DISCUSSIONS AND EXPLANATIONS - THE SECOND FILE IS THE SOURCE FILE (cpp file) THAT SHOULD CONTAIN THE WELL COMMENTED SOURCE CODE Write a C program using the macro definitions and structure definitions as detailed below to store data for employees working at a department at a university and the courses offered by them. #define COURSENAMELENGTH 50 #define COURSECODELENGTH 10 #define COURSESMAX 5 #define DIPLOMAMAX 5 // DERS ADI UZUNLUGU // DERS KODU UZUNLUGU // Maximm des yk // Maximm Diploma says typedef struct fullName{ char *name; char *surname; }name_t; //tam ad //ad //soyad typedef struct dates{ int day; char* month; short year; }date_t; //tarih //gn //ay //yl typedef struct diploma{ char *facName; char *dept Name; char *level; date_t date Awarded; }diploma_t; //diploma //faklte adi //blm ad //lisans, Yksek Lisans veya Doktora //diploma tarihi typedef struct courseOffered{ char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; date_t startDate; date_t endDate; } course_t; //kaytl Dersler //ders adi //ders kodu //dersin balang tarihi //dersin biti tarihi typedef struct employeeInfo{ name_t employeeName; diploma_t dip[DIPLOMAMAX] ; course_t noCourses [COURSESMAX] int age; double salary; date_t startDate; date_t dateOfBirth; } employee_t; /retmen bilgisi 1/retmen ad //diploma bilgisi //verdii derslerin listesi //ya //maa //ie Balang Tarihi //dogm Tarihi In your program perform functions to addEmployee), addDiploma(), addCourse(), displaylnstructorInfo() and displayCourselnfo(), printClass() and calculate Course Average(). Please remember that you are not allowed to use any global variables or file operations. All variables used must be local variables. I want to see how you pass parameters to functions. 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 employee_t allEmployees to both populate the employee data of the university, as well as to display them. Please remember you will be graded based on how well you showcase your knowledge. Feel free to add any further functionality to your program provided the functionality, required and detailed above, is completely implemented and detailed. If a student cannot do everything in the program they can still do partial work and that will be graded provided they can explain and detail their work both schematically and verbally (in form of a document). Partial work will be partially graded. GOOD LUCK PLEASE SUBMIT ONLY 2 FILES - FIRST ONE IS THE PDF FILE THAT SHOULD CONTAINS ALL NECESSARY DIAGRAMS, ALONG WITH DISCUSSIONS AND EXPLANATIONS - THE SECOND FILE IS THE SOURCE FILE (cpp file) THAT SHOULD CONTAIN THE WELL COMMENTED SOURCE CODE Write a C program using the macro definitions and structure definitions as detailed below to store data for employees working at a department at a university and the courses offered by them. #define COURSENAMELENGTH 50 #define COURSECODELENGTH 10 #define COURSESMAX 5 #define DIPLOMAMAX 5 // DERS ADI UZUNLUGU // DERS KODU UZUNLUGU // Maximm des yk // Maximm Diploma says typedef struct fullName{ char *name; char *surname; }name_t; //tam ad //ad //soyad typedef struct dates{ int day; char* month; short year; }date_t; //tarih //gn //ay //yl typedef struct diploma{ char *facName; char *dept Name; char *level; date_t date Awarded; }diploma_t; //diploma //faklte adi //blm ad //lisans, Yksek Lisans veya Doktora //diploma tarihi typedef struct courseOffered{ char courseName [COURSENAMELENGTH]; char courseCode [COURSECODELENGTH]; date_t startDate; date_t endDate; } course_t; //kaytl Dersler //ders adi //ders kodu //dersin balang tarihi //dersin biti tarihi typedef struct employeeInfo{ name_t employeeName; diploma_t dip[DIPLOMAMAX] ; course_t noCourses [COURSESMAX] int age; double salary; date_t startDate; date_t dateOfBirth; } employee_t; /retmen bilgisi 1/retmen ad //diploma bilgisi //verdii derslerin listesi //ya //maa //ie Balang Tarihi //dogm Tarihi In your program perform functions to addEmployee), addDiploma(), addCourse(), displaylnstructorInfo() and displayCourselnfo(), printClass() and calculate Course Average(). Please remember that you are not allowed to use any global variables or file operations. All variables used must be local variables. I want to see how you pass parameters to functions. 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 employee_t allEmployees to both populate the employee data of the university, as well as to display them. Please remember you will be graded based on how well you showcase your knowledge. Feel free to add any further functionality to your program provided the functionality, required and detailed above, is completely implemented and detailed. If a student cannot do everything in the program they can still do partial work and that will be graded provided they can explain and detail their work both schematically and verbally (in form of a document). Partial work will be partially graded. GOOD LUCK

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions