Journey
#include <iostream>
using namespace std;
int main()
{
double budget;
cin >> budget;
string season;
cin >> season;
string destination;
string holidayInfo;
double moneySpent = 0.00;
cout.setf(ios::fixed);
cout.precision(2);
if(budget <= 100){
destination == "Bulgaria";
if(season == "Summer"){
moneySpent = budget * 0.30;
holidayInfo == "Camp";
}else if(season == "Winter"){
moneySpent = budget * 0.70;
holidayInfo == "Hotel";
}
cout << "Somewhere in " << destination << endl;
cout << holidayInfo << " - " << moneySpent << endl;
}else if(budget <= 1000){
destination == "Balkans";
if(season == "Summer"){
moneySpent = budget * 0.40;
holidayInfo == "Camp";
}else if(season == "Winter"){
moneySpent = budget * 0.80;
holidayInfo == "Hotel";
}
cout << "Somewhere in " << destination << endl;
cout << holidayInfo << " - " << moneySpent << endl;
}
else {
destination == "Europe";
moneySpent = budget * 0.90;
holidayInfo == "Hotel";
cout << "Somewhere in " << destination << endl;
cout << holidayInfo << " - " << moneySpent << endl;
}
return 0;
}
Къде греша, че не ми изписва destination и holidayInfo?