Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In your program perform functions to addEmployee(), addDiploma(), addCourse(), displayInstructorInfo() and displayCourseInfo(), printClass() and calculateCourseAverage(). Use void main() To write the program. Please answer it
In your program perform functions to addEmployee(), addDiploma(), addCourse(), displayInstructorInfo() and displayCourseInfo(), printClass() and calculateCourseAverage(). Use void main() To write the program. Please answer it Quickly becouse it's a very important homework
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 // DERS ADI UZUNLUGU #define COURSE CODELENGTH 10 // DERS KODU UZUNLUGU #define COURSESMAX 5 // Maximum des yk #define DIPLOMAMAX 5 // Maximum Diploma says: typedef struct fullName{ //tam ad char *name; //ad char *surname; //soyad }name_t; typedef struct dates [/tarih int day; //gn char* month; //ay short year: 1/yit }date_t; typedef struct diplomat //diploma char *facName; 7/faklte ad char *dept Name; //blm ad char *level; 1/lisans, Yksek Lisans veya Doktora date_t dateAwarded; //diploma tarihi }diploma_t; typedef struct courseOffered //kaytl Dersler char courseName [COURSENAMELENGTH]; //ders adi char courseCode [COURSECODELENGTH]; //ders kodu date_t startDate; 1/dersin balang tarihi date_t endDate; //dersin biti tarihi } course_t; typedef struct employeeInfo{ /retmen bilgisi name_t employeeName; //retmen ad diploma_t dip DIPLOMAMAX) ; //diploma bilgisi course_t noCourses [COURSESMAX) //verdii derslerin listesi //yas double salary: //maa date_t startDate; 1/ie Balang Tarihi date_t dateOfBirth; 1/dogum Tarihi } employee_t; int age; 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 // DERS ADI UZUNLUGU #define COURSE CODELENGTH 10 // DERS KODU UZUNLUGU #define COURSESMAX 5 // Maximum des yk #define DIPLOMAMAX 5 // Maximum Diploma says: typedef struct fullName{ //tam ad char *name; //ad char *surname; //soyad }name_t; typedef struct dates [/tarih int day; //gn char* month; //ay short year: 1/yit }date_t; typedef struct diplomat //diploma char *facName; 7/faklte ad char *dept Name; //blm ad char *level; 1/lisans, Yksek Lisans veya Doktora date_t dateAwarded; //diploma tarihi }diploma_t; typedef struct courseOffered //kaytl Dersler char courseName [COURSENAMELENGTH]; //ders adi char courseCode [COURSECODELENGTH]; //ders kodu date_t startDate; 1/dersin balang tarihi date_t endDate; //dersin biti tarihi } course_t; typedef struct employeeInfo{ /retmen bilgisi name_t employeeName; //retmen ad diploma_t dip DIPLOMAMAX) ; //diploma bilgisi course_t noCourses [COURSESMAX) //verdii derslerin listesi //yas double salary: //maa date_t startDate; 1/ie Balang Tarihi date_t dateOfBirth; 1/dogum Tarihi } employee_t; int age
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