Answer:
C++.
Step-by-step explanation:
int main() {
int off_cost = 50;
int on_cost = 100;
float discount = 0.1;
string season = "off season";
///////////////////////////////////////////////////////////////////////////
int no_of_rooms = 0;
cout<<"How many rooms? ";
cin>>no_of_rooms;
cout<<endl;
///////////////////////////////////////////////////////////////////////////
float total_cost = 0;
if (season == "off season") {
if (no_of_rooms > 5) {
total_cost = (no_of_rooms * off_cost) - ((no_of_rooms * off_cost) * discount);
// With tax
// total_cost = total_cost + (total_cost * fraction);
}
else
total_cost = (no_of_rooms * off_cost);
}
///////////////////////////////////////////////////////////
else {
if (no_of_rooms > 5) {
total_cost = (no_of_rooms * on_cost) - ((no_of_rooms * on_cost) * discount);
// With tax
// total_cost = total_cost + (total_cost * fraction);
}
else
total_cost = (no_of_rooms * on_cost);
}
///////////////////////////////////////////////////////////////////////////
cout<<"Total cost = "<<total_cost;
return 0;
}