Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started