120 likes | 234 Views
SUN BANK SIMULATION. By SUN LABS. IDEA OF THE PROGRAM: The Program shows the time simulation of at what time customer gets in the Queue and how much time does it takes for the customer to reach the counter for its request to be processed, and then how much time customer spends on the counter.
E N D
SUN BANK SIMULATION By SUN LABS
IDEA OF THE PROGRAM: • The Program shows the time simulation of at what time customer gets in the Queue and how much time does it takes for the customer to reach the counter for its request to be processed, and then how much time customer spends on the counter. • The Customers are being processed in FIFO structure to maintain the Queue.
Data Structure : Queue • What is a Queue ? • Queue is way to Organize Data in a FIFO (First in First Out) Format • Operations of Queue • Enqueue • Dequeue • Clone
Operations of Queue • Enqueue: • It allows to Insert an item / member in the Queue • It uses Class’s Object as a reference • Dequeue: • It Allows to Remove an Item / member from the Queue following the FIFO format • Clone: • It Copies the Queue in another Queue Keeping all its Properties and members same
Implementation of Queue • Add to Queue: • Members are Added in the Queue by filling up the Text Fields and pressing Add to Queue button. • Members are Placed at the End of Queue for FIFO structure to be followed • Process: • Sends you to the Processing Counter for User Information to be Processed using Queue Structure.
Processing a Queue • Dequeue: • Members are Deleted From the Queue and place their values in text fields to be processed • Save: • Make two files • First with the name of customer with their account details in it. • Second Named as Dequeue keeping the Record of user with their time taken to Process their requests • Timer: • It calculates the time taken by taken by each customer since their arrival till their request is being processed.