subject

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.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, Remba
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
image
Computers and Technology, 23.06.2019 19:50, Aprillove7939
Which feature is selected to practice and save the timing of a presentation
Answers: 1
image
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
image
Computers and Technology, 24.06.2019 10:10, nakeytrag
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
You know the right answer?
Imagine you work in a travel agency. Your job is to give your customer an estimate of how much it wo...

Questions in other subjects:

Konu
Mathematics, 02.12.2019 02:31