Computers and Technology, 23.09.2020 14:01 sanafarghal
Imagine you work in a travel agency. Your job is to give your customer an estimate of how much it would cost them to travel somewhere. The company your work for specializes in 2 continents (Europe and Asia). Three countries in Europe (France, Germany and Italy) and two in Asia (China and Japan).Using nested if-else statements, your program must ask the user where they are planning to travel. Once it figures it out, it should print out an estimated cost in US dollars (you may come up with the costs). Hint: Your first question may be something like "Which continent would you like to travel, Europe or Asia? Please enter ‘e’ for Europe or ‘a’ for Asia."Then, your second question (which should be in the second "layer" of if-else statements) should ask for the country. At the end, your program should print something like: "Nice, average cost of traveling to China is $1,800.00 per week" or anything alike; again, you are welcome to customize these messages and the costs.
Answers: 2
Computers and Technology, 23.06.2019 19:50, Aprillove7939
Which feature is selected to practice and save the timing of a presentation
Answers: 1
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
Imagine you work in a travel agency. Your job is to give your customer an estimate of how much it wo...
History, 02.12.2019 02:31
Physics, 02.12.2019 02:31
History, 02.12.2019 02:31
Mathematics, 02.12.2019 02:31
Mathematics, 02.12.2019 02:31