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 employees working at a department at a

image text in transcribed

image text in transcribed

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 COURSECODELENGTH 10 // DERS KODU UZUNLUGU #define COURSESMAX 5 // Maximum des yk #define DIPLOMAMAX 5 // Maximm 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; //yil }date_t; typedef struct diploma{ //diploma char *facName; //faklte ad char *deptName; //blm ad char *level; //lisans, Yksek Lisans veya Doktora date_t dateAwarded; 1/diploma tarihi }diploma_t; typedef struct courseOffered{ //kaytl Dersler char courseName [COURSENAMELENGTH]; //ders adi char courseCode [COURSECODELENGTH]; //ders kodu date_t startDate; //dersin balang tarihi date_t endDate; //dersin biti tarihi } course_t; typedef struct employee Info{ fretmen bilgisi name_t employeeName; 1/retmen adi diploma_t dip (DIPLOMAMAX); //diploma bilgisi course_t noCourses (COURSESMAX] //verdii derslerin listesi int age; //yas double salary: //maas date_t startDate: //ie Balang Tarihi date_t dateOfBirth; 1/dogm Tarihi } employee_t; Programnzda gretmenEkle(). diplomaEkle(), dersEkle(), OgretmenBilgiGoster() ve DersBilgiGoster(), ilevlerini gerekletirin. Ltfen herhangi bir global deiken kullanmayn. Ayni zamanda dosya okuma yazma gibi ilemleri yapmayn. Parametreleri fonksiyonlara nasl aktardnz grmek istiyorum. Kullanlan tm deikenler yerel deikenler olmaldr. Ltfen deikenleri bir diyagram kullanarak bellekte grndkleri gibi detaylandrn. Ltfen programnzn ak emalarn ve teknik aklamalarn, iyi belgelenmi kaynak kodunuz ile birlikte sunun. In your program perform functions to addEmployee(), addDiploma(), addCourse(). display InstructorInfo() and displayCourseInfo(). printClass() and calculateCourseAverage(). 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. main() fonksiyon iinde, ihtiyacnz olan dier deikenlerle birlikte employee_t allEmployees deikenini kullann; bu deiken bir niversitede ki gretmenlerin bilgisini doldurmak ve grntlemek iin kullanlacak. 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. Bilginizi ne kadar iyi sergilediinize gre derecelendirileceinizi ltfen unutmayn. Yukarda verilen ilevselliin tamamen uygulanmas ve ayrntl olmas kouluyla, programnza baka ilevler eklemekten ekinmeyin. Bir renci sorulan sorunun btnn yapamazsa, yine de ksmi bir alma yapabilir ve almalarn hem ematik hem de yazl rapor olarak (bir belge eklinde aklayp detaylandrmalar kouluyla notlandrlacaktr. Ksmi almalar kismi olarak notlandrlacaktr. 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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions