Hi folks,
Guess what....I am kind of new to OO programming programming.
However, I have this task to complete in next week and if someone is willing to help, would be much appreciated.
Task: Given input file A, translate the content to produce output file B
File A: Consists of multiple lines of data, whereby each line is of form
X;1.9,2;3,4.3; 5,6
Output file B, should consists of one line per shape and should be formatted as follows.
Shape[TRIANGLE], Points[[[3.0,3.0], [5.0, 8.0], [8.0,4.0]]], Area[9.0]
This should be supporting 4 shape types: Circle, Square, Triangle, Rectangle.
This should demonstrate OO design principle and use Factory design patten and Unit tests.
Note: File A has these cartisean coordinates and is a xxx.dat file;
t: 3,3; 5,8; 7,4
s:-1,-6; -1,-3; 2, -3; -2, -6
c: -4, -3; -2,-1
r:-1,1;4,1; -5; -1,-5