To write a COMPLETE C program) Prepare a menu-driven C program for Inserting and deletion operations for a queue structure of teacher information which has the following structure declaration....


To write a COMPLETE
C program)
Prepare a menu-driven C program for
Inserting and deletion operations for a queue structure of teacher information
which has the following structure declaration.
Structure of a queue will be defined as follows.

struct teacher


{ charF_name[12]; charL_name[12]; intTC;

charaddress[20]; charemail[30];


charmobile[12];


chardepartment[2];/* CE=Computer
Engineering, E=English */



};


struct queue


{struct teacherstd_info[10]; intfront

,rear;


};

Define the following Initialized array of structure in your program.
struct teacher HKU [10]={”Ahmet”
,”Osman”, 12005310,”Gaziantep”,”[email protected]”,“05531001020”,“CE”,
”Sevgi” ,”Mert”, 12005311,”Konya”,” [email protected]”,
“05531141990”,“E”,
”Osman”,
”Kemal”, 12005312,”Istanbul”,” [email protected]”,
“05531331023”,“CE”,
”Mert”, ”Osman”, 12005313,
”Antalya”,” [email protected]”,
“05531041424”,“CE”,
”Ayse”,”Omer”,
12005314,”Ankara”,” [email protected]”,
“05531087412”,“E”,
”Kemal”, “ali”, 12005315,
”Izmir”,” [email protected]”,
“05535471028”,“CE”,
”Lale”, ”Can”, 12005316, ,”Trabzon”,” [email protected]”,
“05534712036”,“E”,
”Sefer”,
”Mert”, 12005317, ”Mardin”,” [email protected]”,
“05531078621”,“CE”,
”Meral”, ,”Jemal”, 12005318,”Bursa”,” [email protected]”,
“05531003578”,“E”,
”Demet”,
”Kemal”, 12005319,”Ankara”,” [email protected]” ,“05531841220”,“E”};



The following steps of
operations
will take place in your menu-driven
program.





1.Create a Circular queue usingHKUarray structure (copy from array into the queue will be done).



2.Using the circular queue which is populated in step 1, Create two new circular queues, one for Computer Engineering teachers and one for English teachers. These new queues will be created usingdepartmentfields for determining
Computer Engineering(CE) andEnglish(E) queues.

3.Print the contents of Computer Engineering QUEUE and EnglishQUEUE.

4.Deletethe contents of THE THREE QUEUES.



5.End of operation

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here