I need help with a homework assignment for my beginner computer science class. I am completely lost!
I need to write a program in Perl that will calculate the distance between 2 points with three values (x,y,z) by the given formula by my professor. the program must do the following:
- prompt for 'c' to continue 'q' to quit
- prompt for the x, y, z coordinate indivually of the first set
- prompt for the x, y, z coordinate indivually of the second set
- compute the distance between the distance between the two sets and then display the value and quit.
This is what I've done so far:
Psuedo code outline the above
IF THEN process outline for the c to continue and q to quit part Found a sqrt equation for computing the distance
Rather than getting code, I'm really looking for tips on where to start here. Do I start by defining my variables? Any tips or direction on a first outline would be really appreciated! ;)