Question: Write a bash script to Read the values for b1, b2, h and L and then calculate and print the volume of the trapezoidal prism

Write a bash script to Read the values for b1, b2, h and L and then calculate and print the volume of the trapezoidal prism to 4 decimal places. Here is an example run: ================================ Author: Print Your Name Here ================================ Enter base (b1): 3.4 Enter base (b2): 6.2 Enter base (h) : 4.5 Enter base (L) : 5.5 Volume of the Trapezoidal Prism = 118.8000 cubic units.

Volume of a trapezoldal Prism = 1/2 (b1+b2) x h x L

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 Databases Questions!