SUN BANK SIMULATION

Preview:

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

1

SUN BANK SIMULATIONSUN 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.

2

DATA STRUCTURE : QUEUE

3

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

4

• 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

5

• 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.

Implementation of Queue

6

• 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.

Processing a Queue

7

8

9

10

11

FILE VIEWS

12

Recommended