Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

687.Text data calculation -- How to calculate the area of triangles base on 3 sides automatically?

User: editor -- 2010-12-30          << 686  688 >>
Hits: 2132
Type: Text data calculation   
Search all Text data calculation examples
How to calculate the area of triangles base on 3 sides automatically?
There's a text file, there are 3 sides of a triangle in each line, how to get the area of each triangle?
Input Sample:
3 4 5
7 5 8
9 12 7
12 9 18
6 10 8
Output Sample:
Area of triangle with sides (3,4,5) is 6.00
Area of triangle with sides (7,5,8) is 17.32
Area of triangle with sides (9,12,7) is 31.30
Area of triangle with sides (12,9,18) is 47.99
Area of triangle with sides (6,10,8) is 24.00
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
We use the formula of heron:

Assume the three sides are a,b,c
where p=(a+b+c)/2 or perimeter/2. 

1. ctrl-o open source text file
2. ctrl-h open replace window
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

* click 'Advanced' page, set 'Run following for each matched unit' to:

3. click 'replace', done.
4. ctrl-s save to file.

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Advanced_Window

Similar Examples:
How to add title attribute for all images in html files automatically? (60%)
How to calculate OBV(On Balance Volume) base on stock data? (60%)
How to remove/delete ending spaces of all lines automatically? (59%)
How to calculate Parabolic SAR on a 5 days basis of stock data? (58%)
How to convert all the phrases to the Abbr automatically? (57%)
How to make html tags for image file list automatically? (57%)
How to add alt attribute for all img tags in html files automatically? (56%)
How to create many different html files base on a given template?  (56%)

Check Demo of Text data calculation
angle  abc  calculate  automatically  automatic  calculation  automat  calcu  calculat  auto  text of calculation of triangle area  how to calculate area of text file  data base  calculate text data  calculation in text file  line data  replace line data  replace with data