Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis And Decision Making

Authors: Christian Albright, Wayne Winston, Christopher Zappe

4th Edition

538476125, 978-0538476126

More Books

Students also viewed these Programming questions

Question

i need correct answrrs 2 . .

Answered: 1 week ago