Your task is to do the following: Ask the user how many places they would to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Python code def main printWelcome to the travel planner G... View the full answer
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
Design an activity-based cost system for Assembly.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Write a project management plan. we have a template and project description. we need to edit the template(table of contents) with our own ideas. CPSC 8820-01 Project Management Plan Your Unique...
-
In its processing of peanuts this month, Whispering added $3,275 of DM from its warehouse directly into the roasting process, where there was an existing beginning WIP Inventory balance of $1,475....
-
A 30-kg uniform thin panel is placed in a truck with end A resting on a rough horizontal surface and end B supported by a smooth vertical surface. Knowing that the panel remains in the position...
-
The following equation has no analytical solution even though it is linear. x + x = tan t x(0) = 0 The approximate solution, which is less accurate for large values of t, is Create a Simulink model...
-
An investor has utility function $U(x)=x^{1 / 4}$ for salary. He has a new job offer which pays $\$ 80,000$ with a bonus. The bonus will be $\$ 0, \$ 10,000, \$ 20,000$, $\$ 30,000, \$ 40,000, \$...
-
Use the income statement for Hargrove Dynamics, Inc., for the past year ended December 31, 2011, and the information from the comparative balance sheets shown for the beginning and the end of the...
-
Will the "government" or the "free market" be better able to manage the cost of healthcare?
-
George Pharmacy is a pharmaceutical salesman who has been very successful at his job in the last few years. Unfortunately, his family life has not been very happy. Three years ago, his only child,...
-
In the Health care profession, offer the past experience in the field that makes you favorable for the post
-
What is POSITIVE PSYCHOLOGY? What are the advantages of using positive psychology? Describe two examples of using positive psychology in real life .?
-
Of all the outstanding shares of common stock in Major Corporation, Mark owns 710 of the shares; his grandfather owns 100 shares; his father owns 110 shares; his ex-wife owns 700 shares; Minor...
-
What is positive psychology and how positive psychology manifests itself in the workplace. Access whether positive psychology more acceptable to performance appraisal process or the training and...
-
What is the distinction between cash premise and gathering premise bookkeeping? How does the matching guideline affect budget reports? Make sense of the idea of deterioration and its significance in...
-
1. What are retained earnings and how are they calculated? 2. How do retained earnings impact a company's financial statements? 3. What is the difference between retained earnings and net income? 4....
-
Draw pyruvate as it would occur at the pH of most body fluids.
-
1A. If the researcher is concerned about the number of variables, the nature of the analysis, and completion rates, then, he/she is at which stage of the sampling design process (Figure 11.1 in the...
-
The Euro Watch Company assembles expensive wristwatches and then sells them to retailers throughout Europe. The watches are assembled at a plant with two assembly lines. These lines are intended to...
-
Senior partners of an accounting firm are concerned about recent complaints by some female managers that they are paid less than their male counterparts. In response to these charges, the partners...
-
Use @RISK to analyze the sweatshirt situation in Problem 14 of the previous section. Do this for the discrete distributions given in the problem. Then do it for normal distributions. For the normal...
-
For the HiTech example (17.1), find the risk-neutral probability of default. Example 17.1 (A leveraged firm) The HiTech firm currently has a value of $1 mil- lion and is financed in part by a 5-year...
-
Suppose that the adjustable-rate auto loan of Example 16.5 is modified by the provision of CAP that guarantees the borrower that the interest rate to be applied will never exceed \(11 \%\). What is...
-
Explain how you would find the value of a bond futures option.
Study smarter with the SolutionInn App