Question: Write a method called octPrism ( int h , int a ) that takes an int height and an int side in as parameters. Use

Write a method called octPrism(int h, int a) that takes an int height and an int side in as parameters. Use the two values to find and return the value of the volume of the associated regular octagonal prism.
The formula for a right rectangular prism is
V=2(1+2)a2h
Write a method called octPrism ( int h , int a )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!