subject

ScenarioYou are creating a simple Python script that takes a distance and a completion time and outputs the speed in knots, miles per hour, and feet per second. AimUsing variables write a script that defines a distance of 60 miles and a completion time of 3 hours. The output should show a completion speed in miles per hour, knots, and feet per second. Here are some hints:The formula for calculating speed is distance/time = speed. To convert miles to knots, divide the miles by 1.15078.To convert miles to feet, multiply the miles by 5280.To convert hours to seconds, multiply hours by 3600.The output should resemble Figure 1.8 shown below. Steps for CompletionGo to your main. py file. On the first two lines, declare two variables for the distance in miles and time in hours and assign the values 60 and 3, respectively. In the next two lines, calculate the distance in knots and distance in feet based on the distance in miles. Then, calculate the time in seconds based on the time in hours. Next, calculate the speed in knots, speed in miles per hour, and speed in feet per second. Finally, add print statements to print out the results. In your terminal, run the script by using the python3 main. py command.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added to a new table in data base
Answers: 1
question
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
You know the right answer?
ScenarioYou are creating a simple Python script that takes a distance and a completion time and outp...
Questions
question
Mathematics, 19.03.2021 01:50
question
Business, 19.03.2021 01:50
question
Mathematics, 19.03.2021 02:00
question
Mathematics, 19.03.2021 02:00
question
Mathematics, 19.03.2021 02:00
Questions on the website: 13722359