protected void CalculateButton_Click(object sender, EventArgs e)
private Double CalculateCostOfStay(String Place, String Days) { Double TotalCost; Double NumberOfDays; NumberOfDays = StringToNumber(Days); if (Place == "China") { TotalCost = 225 * NumberOfDays; } else if (Place == "England") { TotalCost = 350 * NumberOfDays; } else if (Place == "France") { TotalCost = 300 * NumberOfDays; } else if (Place == "Germany") { TotalCost = 275 * NumberOfDays; } else if (Place == "Spain") { TotalCost = 250 * NumberOfDays; } else { TotalCost = 0; } return TotalCost; }
CalculateCostOfStay
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)