FCFS program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sheanne
    New Member
    • Mar 2008
    • 1

    FCFS program

    I dont know how to do FCFS algorithm program.
    Can you help me to do it in easy programming language.
    thank you
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by sheanne
    I dont know how to do FCFS algorithm program.
    Can you help me to do it in easy programming language.
    thank you
    Hmmm, i'll assume you're working with some customers to be attended first-come, first-served:

    I think an easy way will be with a database with 3 columns: Customer, Date/Time, Status.

    So when you are going to give service to a customer you'll chose the one with the oldest date and an unfinished status.

    If you don't have a huge amount of customers, or if you don't need your database to be stored (e.g. if you're only making an exercise), you can use an array or a listbox instead of a DB.

    Give it a try.
    Last edited by Killer42; Mar 6 '08, 02:06 AM. Reason: Corrected "costumer" and "custumer"

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      You can Add an AutoGenetrated ID Column, to the table, and query base on the ID..

      REgards
      Veena

      Comment

      Working...