If one or maybe
more worker can not come to work, the program then automatically pick
randomly another worker from an existing array, who are not currently
working the same shift and replace into that position. The payment then
also is made to the person who works the shift. Workers with many sick
leaves will be fired and worker from a list of unemployed will be chosen
to replace the position.
Customers have
their own choice of food by the random numbers used in the program. Also
the amount of food that they order is related to their hungry status.
Along, customers can make complaint if they become sick because of the
food they bought or because the food is not available at the time of
order.
Each type of food
in the program has its own expire period. After the period, the food is
thrown away, number of food in stock will be deducted and also the
decreasing of revenue as there are expenses that the restaurant has to pay
for the non-selling food.
When fire,
robbery or even bomb and earthquake occur. The restaurant will result in
the lost of property or cash and probably complaints from customers and
hence more money have to be spent to cover the lost, or improve the
condition of the restaurant. This could lead the restaurant to a bankrupt
and closing down of the business. After a emergency, the number of
complaint would be increased significantly.
The compensation
will be paid for the customer if there are too many complaints.
There are three
types of insurance that we can choose to buy. With insurance, we
will receive compensation when the restaurant is damaged. The amount of
compensation can be different depends on type of insurance.
Another
interesting thing is about the Graphic User Interface of the system. The
whole program is displayed in a panel. The quantity of food in stock is
displayed by bar graphs. When the food quantity runs low, a warning
message is displayed. A text pane displays the financial statement and
other information. When the store's profit goes negative, the text pane
goes red, and food prices are increased. When profit goes high, food
prices are decreased for customer satisfaction and the text pane goes
blue.