Now You Code 3: Distance Conversions

Write a Python program to enter a distance in feet then convert that distance to yards and miles.

For example:

Enter distance in FEET:15000
That's 5000.0 yards or 2.8 miles.

NOTES:

- Research the converion formulas on your own.
- Format float variable output to one decimal place

Step 1: Problem Analysis

Inputs:

Outputs:

Algorithm (Steps in Program):


In [1]:
# Step 2: write code here

Step 3: Questions

  1. What is the format code to output the distance with no decimal places?

Answer:

  1. Does the output make sense when you enter a negative distanct in feet? Why or why not?

Answer:

  1. Did you store your conversions in variables? I argue this makes your program more readable. Why?

Answer:

Step 4: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Double-Click and Write Your Reflection Below Here ==--


In [ ]:
# RUN THIS CODE CELL TO TURN IN YOUR WORK!
from ist256.submission import Submission
Submission().submit()