Chiuso

mini java assignment

Questo progetto è stato assegnato a yamaf555 per $30 USD.

Ottieni preventivi gratuiti per un progetto come questo
Datore di Lavoro impegnato
Budget del Progetto
$10 - $30 USD
Offerte Totali
14
Descrizione del Progetto

Write a program that takes custom order as an input and sort the given strings according

to this order. All strings are uppercase letters in that question. Please use the starter

template we are provided.

Q2) Investors place buy and sell orders for a particular stock on an electronic exchange, speci-

fying a maximum buy or minimum sell price that they are willing to pay, and how many

shares they wish to trade at that price. Develop a program that uses priority queues to

match up buyers and sellers and test it through simulation. Maintain two priority queues,

one for buyers and one for sellers, executing trades whenever a new order can be matched

with an existing order or orders. Your program takes a .txt le which is containing the

orders in each line and also create a output le to show trades between buyers and sellers.

In the input le, rst column specify the trade type, second column represent speci c id

for each buyer or seller, third column represent number of share and last column specify

minimum selling price for sellers or maximum buying price for buyers. Notice that priority

for sellers is one who gives lowest price and for buyers is one who gives highest price. Please

use the starter template we are provided.

Assegnato a:
Competenze Richieste

Stai cercando di guadagnare dei soldi?

  • Stabilisci il tuo budget ed il tempo limite
  • Metti in rilievo la tua proposta
  • Fatti pagare per il tuo lavoro

Assumi Freelancer che hanno fatto un'offerta per questo progetto

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online