Question: Question 1 (10 Points) Write a well-documented, Python program, hmwk1Q1.py that simulates a person hauling a boat towards a dock. The rope is pulled in
Question 1 (10 Points) Write a well-documented, Python program, hmwk1Q1.py that simulates a person hauling a boat towards a dock. The rope is pulled in at the rate of 1 m/s. The initial rope length (0) 10. Use Python lists to represent time t and the quantities s(t),x(t) and (t). Also, have your program find the minimum of the range-rate i(t). s(t) 4 m x(t) Boat Problem Geometry Hints: Form a time list from 0 to 6 seconds in increments of 100 ms. Use a for-loop to form the quantities s(t) and X(t) using the Pythagorean-theorem to relate s(t) and x(t) for all times in the time-list. Use a for-loop to form the quantity i(t) *2 2 . There will be one less term x(,) than x()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
