This project is about:
- Reading from a files containing points
- Calculating the perimeter of one point to the other
- Finding the maximum and minimum perimeter
- Average length of all the perimeter
- Sum of all the perimeter
- Passing the files from the
command prompt
- Saving the return values of the
summarize points
to a text file calledtotal_output.txt
- Making sure the
Point class
can accept any length of point.
The two available module that can process points are
- perimeter.py
- perimeter.sh
Bash script
which depend onperimeter.py
Both of this two file can accept any files containing point, but the main difference is that;
-
perimeter.py will only return the summary to the terminal
while
- perimeter.sh will save the output into
total_output.txt
and also display the content to the terminal.
The pattern that was used to generate the currenttotal_output.txt
is