Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task is to do the following: Ask the user how many places they would to go to. They will input a positive integer
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: o How long does it take to travel to the location? How long do you spend there? After 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 #1. Example 1: . Welcome to the travel planner. How many places are we visiting today? 3 How long do we have to visit today? 300 How long does it take to travel to location #1? 30 How long would you like to stay in location #1? 15 How long does it take to travel to location #2? 5 How long would you like to stay in location #2? 30 How long does it take to travel to location #3? 60 How long would you like to stay in location #3? 20 This trip would take 160 minutes. You are able to take this trip.
Step by Step Solution
★★★★★
3.48 Rating (161 Votes )
There are 3 Steps involved in it
Step: 1
Python code def main printWelcome to the travel planner G...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started