subject

Can_afford = truedestination_is_safe = trueeducational_value = truerelatives_nearby = trueis_international = truehave_passport = trueafraid_to_fly = truehave_a_car = trueis_a_beach = trueis_warm = falsehas_skiing = trueis_a_city = trueis_off_peak = truehas_attraction = false#you may modify the lines of code above, but don't move them! #when you submit your code, we'll change these lines to#assign different values to the variables.#imagine for a moment that you're a college student who wants#to travel during spring break. you have a destination in#mind. what determines whether you can go there? ##first, how would you pay for the trip? if you can afford it#(can_afford), then all you need is for your parents to agree#to let you go. your parents will agree to let you go if the#destination is safe (destination_is_safe).##if you can't afford it, then you need your parents to pay for#the trip. your parents will pay for the trip if the destination#is safe (destination_is_safe) and if either there is educational#value (educational_value) or there are relatives nearby for#you to visit (relatives_nearby).##second, are you sure you're able to go to this location? if#it's international (is_international), then you'll need a#passport (have_passport) and you can't be afraid to fly#(afraid_to_fly). if it's not international (is_international),#then you either must have a car (have_a_car) or you can't be#afraid to fly (afraid_to_fly).##third, do you actually want to go to this location? if it's a#beach location (is_a_beach), then you want the weather to be#warm (is_warm). if it's instead a skiing location (has_skiing),#you don't want it to be warm (is_warm). if it's a tourist city#(is_a_city), then you either want it to be an off-peak travel#time (is_off_peak) or you want there to be an attraction in#town that week (has_attraction).##if it's both a beach and a city, then you'd decide to go if it#meets the condition for the beach (it's warm) or for a city#(is an off-peak time or has an attraction). if it's both a#skiing location and a city, then you'd decide to go if it meets#either type of location's conditions as well.##your only goal here is to print true or false: true if the#destination represented by the variables is an acceptable#travel location, false if it is not.##hint: don't try to do this all in one line. break it into#smaller parts.#add your code here! note: this is python

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Can_afford = truedestination_is_safe = trueeducational_value = truerelatives_nearby = trueis_interna...
Questions