Question: Please this HAS to be in PYTHON (nothing else) and needs to run completely! When traveling, it is always fun to use the local transportation
When traveling, it is always fun to use the local transportation methods to get around. It could be via train, taxis or even ride sharing. When t am visiting different locations I try to visit as many places as possible. We are going to write a program that will determine if we can visit all the locations we want to visit that day. Your task is to do the following: - Ask the user how many places they would to go to. They will input a positive integer value. - Ask the user how much time they have in that day in minutes. They will input a positive integer value. - Depending on how many places the they want to visit, ask the user two questions: - How long does it take to travel to the location? - How long do you spend there? - Atter you collect the information, determine if you can visit all the locations given the time you have. - Print out the total time it would take to travel. Other specifications: - You must ask them with the number of the location starting from location elf. Example 1: Helicise to the travel ntorner. Han nony oloces are we visiting today? Hon lara do ne hove to visit tedoy? Hioe loeg does it take to trovel te location wi? Ifion tone watd you trke to stay in. Locetion e1? Hon tong does it take to travet to tocotion e2? inew tong woutd you the to. atoy in Iecotion ma? How tong dons it toke to travel fa locetion 13 ? Gion tong mould yau like to stay in locotion e3? 20 Tis trip mould take 160 minutes. You are able to toke this trip
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
