Question: write a program in c language. Consider an organization like Nadra where there exists a queue of people waiting in line for various purposes ranging

write a program in c language.
write a program in c language. Consider an organization like Nadra where

Consider an organization like Nadra where there exists a queue of people waiting in line for various purposes ranging from CNIC creation to record updating. Your task is to facilitate these people by implementing a queue structure where the priority is served on a First come First Served basis. a) Create a structure name queue that contains two variables name and either cnic_no or mobile_no or DoB or address b) Create a function ticket_no that assign tickets to each person based on their first arrival Print the structures in a First come first served bases using their ticket no Input: Enter No of people:3 Enter Person 1 Name: Ahmed Enter CNIC No: 42101-31231238-5 Assigned Number =1// This is self-generated Enter Person 2 Name: Hateem Enter Mobile No: 0354-1234567 Assigned Number =2// This is self-generated Enter Person 3 Name: Farah Enter DOB No: 15-01-2023 Assigned Number =3 //This is self-generated Output: Serving Order

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!