public float returnTotalCostByCustomerTypeAndTime(String customerType,int[] customrDate){
		float totalAfford = 0;
		if(customerType.equals("")||customrDate.length==0){
			// check the data whether is valid!
			// the data is invalid!
			System.out.println("Oh! when hotel check the total offord, your data is wrong!! please check it!");
		}else{
			// the data is valid!
			if(customerType.equals("Rewards")){
				// if the customer is Rewards type,then get the rewards price
				for(int i=0;i<customrDate.length;i++){
					// whether the day in [1..5],then get the weekday rewards price and calculate the total afford
					if(0<customrDate[i] && customrDate[i]<6){
						totalAfford = totalAfford + getWeekdayRewardsPrice();
					}
					else{
					// if the day is saturday or sunday, then get the weekend rewards price and calculate the total afford
						totalAfford = totalAfford + getWeekendRewardsPrice();
					}
				}
			}else{ // the customer is regular type,then get the regular price!	
				// for regular customers, just distinguish from the weekday or weekend
				for(int i=0;i<customrDate.length;i++){
					if(0<customrDate[i]&&customrDate[i]<6){
						totalAfford = totalAfford + getWeekdayRegularPrice();
					}
					else{
						totalAfford = totalAfford + getWeekendRegularPrice();
					}
				}
			}
		}
		// return the total affords that the customer should afford
		return totalAfford;
	}