Question: You will be given a number of datafiles containing inputs of different lengths. Each file will contain a number of lines. Each line will represent

You will be given a number of datafiles containing inputs of different lengths. Each file will contain a number
of lines. Each line will represent inputs from a deployment. The program you must write will open the file,
read each line, and then print the final (x,y) coordinates for that deployment to the console.
For example, if a datafile contained the examples above, your program would display
(1,2)
(2,4)
(-1,4)
(5,-1)
(2,1)
(-4,1)
Detailed Example
Example File (with only one deployment):
NNEEENNW
Program Output:
(2,4)
Illustration to help visualize path taken:
Page 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!