Write a program dist.cthat calculates the distance between two pointsand prints the resulton the screen. The cartesian coordinates of the points wouldbegiven in the command lineas 6 parameters.Your program should check if the number of argumentsprovidedis correct and that the six coordinates are valid numbersof typedouble.dist.exe x1 y1 z1 x2 y2 z2For example, to calculate the distance betweenthetwo points (0, 0, 0) and (1, 1, 1), the program would be run as:dist.exe0 0 0 1 1 1and the screen output would be1.73205
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here