The company wants you to write a program to navigate santa from place to place with his sleigh. The program will loop continuously(hits use a infinite while loop), accepting user input from the keyboard and calculating distances and travel times to each new destination from his current location. For this problem, you may assume that the world is laid out on a 3-D grid with the borth pole at the origin. The trip thus starts at coordinates x=0, y=0,z=0. Each new destination point is entered as a set of x,y,z corrdinates and the distance and time to that point calculated according to the formulas
Distance=((xnew-xold)^2+(ynew-yold)^2+(znew-zold)^2)^(1/2)
After each calculation the distance and time printed on the screen and accumulated to the sum of the total distance and sum of the total time. The current destination should be saved as the old postion for the next calculation. The program should be written to terminate when ever the corrdinates (0,0,0)are entered as destination, but only after calculating that distance and time and displaying the result on the screen. Prior the terminating of the program, the program should also print out the total distance and total time to screen