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, 22.06.2019 14:50, williamsgregg5214
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer. b. don’t write your password down and leave it where others can find it. c. share your password with your friends. d.each time you visit a website, retain the cookies on your computer. e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, mona92
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, genyjoannerubiera
This graph compares the cost of room and board at educational institutions in texas.
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: