9/18/2023 0 Comments Find volume of a triangular prism![]() ![]() Approach-1: Find Area of Rectangular Prism Let’s see the program along with its output one by one. We have provided the solution in different approaches Step 2 − Find the volume of the prism by using the volume formula. Step 1 − Get the length, width and height of the prism either by initialization or by user input. Hence, the volume of the rectangular prism is 168.0 Algorithm Then by using volume formula of triangular prism Volume = 168.0 Suppose we have below details of the triangular prism Length(l) is 8, width(b) is 6 and height(h) is 7 Hence, the volume of the rectangular prism is 320.625 Instance-3 Then by using volume formula of rectangular prism Volume = 320.625 Length(l) is 4.5, width(b) is 7.5 and height(h) is 9.5 Suppose we have below details of the rectangular prism. Hence, the volume of the rectangular prism is 480.0 Instance-2 Then by using volume formula of triangular prism Volume = 480.0 Length(l) is 12, width(b) is 10 and height(h) is 8 Suppose we have below details of the triangular prism. In this article we will see how we can find the volume of the triangular and rectangular prism in Java. We can calculate the volume of the prism by using length, width and height of the prismįormula to calculate volume of triangular prism − Volume = 1/2 x length x width x heightįormula to calculate volume of rectangular prism − Volume = length x width x height Volume of the prism refers to the space/region acquired by the prism. Other types of prisms are also available like pentagonal prism, square prism and hexagonal prism etc. Similarly, when the base of a prism is rectangular in shape it is called a rectangular prism. When the base of the prism is triangular in shape that prism is called a triangular prism. All lateral faces are also identical to each other which belong to the class of parallelograms. Both top and bottom faces are called bases which are identical to each other. A prism has 2 faces, the first one top and bottom face and second one is lateral faces. In surface area questions, we need to know all three side lengths of the triangle however we only need the base and the height to calculate the area of the triangle.A prism refers to a three−dimensional solid object which has two identical ends. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |