Find Jobs
Hire Freelancers

banker

$30-5000 USD

Завершено
Опублікований over 20 years ago

$30-5000 USD

Оплачується при отриманні
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.
ID проекту: 2976440

Про проект

11 пропозицій(-ї)
Дистанційний проект
Активність 21 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$7 USD за 5 дні(-в)
4,9 (48 відгуки(-ів))
3,8
3,8
11 фрілансерів(-и) готові виконати цю роботу у середньому за $50 USD
Аватарка користувача
See private message.
$42,49 USD за 5 дні(-в)
5,0 (160 відгуки(-ів))
6,0
6,0
Аватарка користувача
See private message.
$24,65 USD за 5 дні(-в)
5,0 (80 відгуки(-ів))
5,9
5,9
Аватарка користувача
See private message.
$38,25 USD за 5 дні(-в)
4,9 (94 відгуки(-ів))
4,3
4,3
Аватарка користувача
See private message.
$255 USD за 5 дні(-в)
4,7 (15 відгуки(-ів))
3,8
3,8
Аватарка користувача
See private message.
$63,75 USD за 5 дні(-в)
5,0 (18 відгуки(-ів))
3,5
3,5
Аватарка користувача
See private message.
$11,05 USD за 5 дні(-в)
4,8 (3 відгуки(-ів))
2,5
2,5
Аватарка користувача
See private message.
$5,95 USD за 5 дні(-в)
5,0 (2 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$51 USD за 5 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$5,10 USD за 5 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
See private message.
$51 USD за 5 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
United States
4,9
6
На сайті з вер. 17, 2003

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.