Exemple #1
0
        public OrderProcessing(OrderClass OrderObject, double price)
        {
            if (OrderObject.getCardNo() > 7000 || OrderObject.getCardNo() < 5000)
            {
                set_card_is_valid(false);
            }
            else
            {
                set_card_is_valid(true);
            }

            //calculate total amount of charge = unitPrice*numOfRooms + Tax + LocationCharge
            double num = price * OrderObject.getamount() + .075 + 2;

            set_total_charge(num);
        }