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, 21.06.2019 21:30
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
You know the right answer?
Can_afford = truedestination_is_safe = trueeducational_value = truerelatives_nearby = trueis_interna...
Questions
question
English, 21.03.2020 17:58
question
Mathematics, 21.03.2020 17:59
Questions on the website: 13722361