float order(month, seatType){
float price = 5000;
int season = (month >= 4 && month <= 10) ? 1 : 2; //1是旺季,2是淡季
switch(season){
case 1:
if(seatType == 1){
return price * 0.9;
}else if(seatType ==2){
return price * 0.8;
}
case 2:
if(seatType == 1){
return price * 0.5;
}else if(seatType ==2){
return price * 0.4;
}
}
return price;
}