Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create your Python file. When this file is run, ask the following questions (in this order!), storing their answers as needed in variables: What is

image text in transcribed

Create your Python file. When this file is run, ask the following questions (in this order!), storing their answers as needed in variables: What is the name of the first city? How fast is the train from the first city traveling (in feet per second)? What is the name of the second city? How fast is the train from the second city traveling (in feet per second)? How far away are the two cities (in miles)? Calculate the time the two trains will meet as well as the distance from each city of their meeting place. See http://mathforum.org/dr.math/faq/faq.two.trains.html if you need a refresher on how to calculate this. Print out your problem and your solution, pay special attention to the units and see the full example below for exact formatting. Note that blue text is typed by the user running the code, and that the OS-prompt is red, like $demo. $demo python3 code.py What is the name of the first city? Westford How fast is the train from the first city traveling (in feet per second)? 100 What is the name of the second city? Eastford How fast is the train from the second city traveling (in feet per second)? 88 How far away are the two cities (in miles)? 260 First city: Westford; Second city: Eastford; Distance: 260 miles First train speed: 68 mph; Second train speed: 60 mph Train One will meet Train Two after approximately 730212 feet. Train Two will meet Train One after approximately 642587 feet. The two trains will meet after: 0 days, 2 hours, 1 minutes, and 42 seconds. $demo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions