Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed
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

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

More Books

Students also viewed these Databases questions

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago