Search:

Type: Posts; User: BuhRock

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,216

    Re: Priority Queue help

    So I have to take a step back. I can't use a Priority Queue for my customers. My professor said not to. I'll just use a LinkedList Queue for the customer line.

    Do I still need the comparable and...
  2. Replies
    7
    Views
    1,216

    Re: Priority Queue help

    I guess what I'm confused on, is how to instantiate the registers. The constructor of my store class creates ten registers. So in my temporary tester class, do I even need to do this:

    Register reg...
  3. Replies
    7
    Views
    1,216

    Re: Priority Queue help

    Yes, I suppose it works, it printed out the double that the customer has when its created.. I made a class and added a customer to a register. I just need help on how to add customers to different...
  4. Replies
    7
    Views
    1,216

    Re: Priority Queue help

    Would this work?


    double totalTime = 0;

    for(Customer cust: line ){
    totalTime +=cust.getServiceTime();

    }
  5. Replies
    7
    Views
    1,216

    Priority Queue help

    So I have to implement a checkout line using a priority queue. I'm really stuck. I have 3 classes, a Register class, Store class, and customer class.

    Each customer has a service time which is the...
Results 1 to 5 of 5