Exemple #1
0
        public double sellAll(Dictionary <FoodType, int> foodToSell)
        {
            double somma = 0;

            foreach (FoodType f in foodToSell.Keys)
            {
                for (int i = 0; i < foodToSell[f]; i++)
                {
                    somma += FoodTypeMethods.GetPrice(f);
                }
            }
            return(somma);
        }
Exemple #2
0
 public double sell(FoodType f)
 {
     return(FoodTypeMethods.GetPrice(f));
 }