Find Jobs
Hire Freelancers

banker

$30-5000 USD

Completed
Posted over 20 years ago

$30-5000 USD

Paid on delivery
FINANCIAL INSTITUTION - JAVA 1] Program to represent a simple queuing theory problem. The program will simulate the "time states" of a multiple teller bank which uses the "single queue" approach. Make the problem even simpler by allowing it to be command driven, than time driven. The bank has 6 available teller windows. Each of the six windows (numbered 0 thru 5) may be either *open* or *closed* at any particular time. Customers *wait* in one line until their turn. As a teller becomes available, the customer at the head of the queue is removed from the line and processed by that teller. Different customers have different processing requirements and it takes some number of *clock ticks* to process a customer 2] The following commands will be used. Open - open a closed teller (opening an open teller is an error). Close - close an open teller (closing a closed teller or a teller that has a current customer is an error). Wait - add a customer (FIFO) to the waiting line. Time - some amount of time passes before the next action. Print - print current data about the status of the simulation. ## Deliverables 1. 3] The commands will be supplied one per line. Each command (except *Print*) must have an associated argument. *Close* and *Open*, will have a teller number. *Time* will have some number of clock ticks. The *Wait* command argument is the amount of time (clock ticks) it will take a teller to process that customer. 4] All six teller windows start out *closed* and the waiting line is *empty*. The execution of any command (except *Print* or *Time*) counts as one clock tick. This clock tick occurs after execution of the command. During that clock tick each customer being serviced by a teller is processed one clock tick. A *Time* command indicates that no other commands occur for the indicated number of clock ticks; therefore each customer currently being served is processed up to the indicated number of clock ticks. Any time a customer's processing time is reduced to zero, that customer is removed and replaced with the next customer waiting in line. Your program must keep a *clock*, and each time that a clock tick is processed your clock should be incremented. The clock should start with time 0. 5] The program should accept its input from *stdin* and print its output to *stdout*. 6] A typical input sequence might look like the following: `<font face="arial, helvetica, sans-serif" size="3">Open 5<br /></font>``<font face="arial, helvetica, sans-serif" size="3">Open 3<br /></font>``<font face="arial, helvetica, sans-serif" size="3">Wait 3<br /></font>``<font face="arial, helvetica, sans-serif" size="3">Wait 9<br /></font>``Time 3<br />``Wait 5` `Wait 4` `Open 1` `Close 7` `Print` `Wait 2` `Wait 5` `Wait 2` `Time 5` `Open 5` `Wait 3` `Print` `Wait 7` `<font face="arial, helvetica, sans-serif" size="3">Print<br /> <br /> 7] The <i>Print</i> command will display 7 lines of output, indicating the status of all of the teller windows in the following format. The value XXXX in the first line should be replaced with the time from your running simulation clock value. Each customer is represented by an integer value in square brackets. The number within the brackets at a teller window is the remaining processing time for that customer. The final line reflects the processing time of each customer now waiting in line. NOTE: this sample printout is NOT derived from the sample input above.<br /> **time (XXXX)**<br /> teller 0 closed<br /> teller 1 closed<br /> teller 2 [3]<br /> teller 3 [1]<br /> teller 4 closed<br /> teller 5 [2]<br /> line [4][7][2][10][2]</font>` ## Platform _CONDITIONS_: 1) Complete and fully-functional working program in JAVA programming language and in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) The program should be authentic and exclusive. 5) The program should only be coded in the Java programming language. 6) seller should maintain confidentiality of the buyer.
Project ID: 2976440

About the project

11 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$7 USD in 5 days
4.9 (48 reviews)
3.8
3.8
11 freelancers are bidding on average $50 USD for this job
User Avatar
See private message.
$42.49 USD in 5 days
5.0 (160 reviews)
6.0
6.0
User Avatar
See private message.
$24.65 USD in 5 days
5.0 (80 reviews)
5.9
5.9
User Avatar
See private message.
$38.25 USD in 5 days
4.9 (94 reviews)
4.3
4.3
User Avatar
See private message.
$255 USD in 5 days
4.7 (15 reviews)
3.8
3.8
User Avatar
See private message.
$63.75 USD in 5 days
5.0 (18 reviews)
3.5
3.5
User Avatar
See private message.
$11.05 USD in 5 days
4.8 (3 reviews)
2.5
2.5
User Avatar
See private message.
$5.95 USD in 5 days
5.0 (2 reviews)
0.0
0.0
User Avatar
See private message.
$51 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$5.10 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$51 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.9
6
Member since Sep 17, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.