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