My issue
You are working with a high-class city mall development plan which is based on a full automation system. The owner has said to you that the entry for movies should be in such a way that all those who have registered for the movie can enter in easy whereas the one who hasn’t registered shall not be allowed.
All technical work has been done and you as a programmer have to develop a queue program in order to meet the required conditions by the owner. You can perform all the queue operations. During the input, the customer name and tickets are to be uploaded, and further in the program, the user shall enter its name and ticket number which is to be checked in the database and the required message is to displayed.
EXAMPLE-
Input:
Name: Bob Ticket num: 9182
Name: Jonny Ticket num: 4568
Data has been uploaded
Output:
Name: Bob Ticket num: 9182
Data found, Enjoy the movie
Name: Jonny Ticket num: 8219
Ticket ID not found, re-register
i need code for this
My code
#include <stdio.h>
int main(void) {
// your code goes here
}
Problem Link: Code Queue Practice Coding Problem - CodeChef