Question: May I please know how to program this question in python? Thank you. You are tasked with writing a program that will calculate the cost
May I please know how to program this question in python? Thank you.

You are tasked with writing a program that will calculate the cost of moving fronm one block to another. You will be given a width (N) and Height (M) integer that specifies the size of the map. You will also be provided with X1, Y2 and X2, Y2 coordinates for source and destination coordinates The arguments to your program are: N - Width as integer M - Height as integer C-Cost per a block as float X1-X Starting Position as integer Y1-Y Starting Position as integer . X2-X End Position as integer Y2-Y End Position as integer If the number of arguments specified does not match what is required your program will need to exit immediately. The total cost is determined by the amount of blocks travelled (Blocks Edit: Updated traveled to travelled Example 1: python manhattan.py 43 10.00 00 11 This trip will cost $20.00 and you will have travelled 2 blocks C)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
