Question: 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

 Create your Python file. When this file is run, ask the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!