Question: Using the WingIDE, create a Python program that solves the following problem following: In a certain city, the length of each block is 0.1 miles.
Using the WingIDE, create a Python program that solves the following problem following: In a certain city, the length of each block is 0.1 miles. Each day a man takes a walk. He always decides how many blocks to walk north and then how many blocks to walk east. He selects different numbers of blocks each day. Write a program that
Allows the man to enter the number of blocks north he walked
Allows the man to enter the number of blocks east he walked
prints the total length of the walk
prints the straight line distance from his starting point to his ending point Example Output: Enter number of blocks north: 4 Enter number of blocks east 3 Total distance walked = 7 Straight line distance = 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
