Java Code for Parallelepiped Tetrahedron Volume

This java programming code is used to find the parallelepiped tetrahedron volume. You can select the whole java code by clicking the select option and can use it. When you click text, the code will be changed to text format. This java program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this java code and use it to find the parallelepiped tetrahedron volume.

import java.util.*;
import java.lang.*;
class Volume
{  
    public static void main(String args[])
    {
    double v,x1,x2,x3,x4,y1,y2,y3,y4,z1,z2,z3,z4,t;
    v=(x4-x1)*((y2-y1)*(z3-z1)-(z2-z1)*(y3-y1))+((y4-y1)*((z2-z1)*(x3-x1)-(x2-x1)*(z3-z1)))+
(z4-z1)*((x2-x1)*(y3-y1)-(y2-y1)*(x3-x1));
    t=v/6;
    System.out.println("\nVolume of Parellelepiped = "+v);
    System.out.println("\nVolume of Tetrahedron = "+t);
    }
}
Other Programming Codes
Click on the select code link to copy and paste this free java program code for parallelepiped tetrahedron volume.

english Calculators and Converters


Sitemap