Question: Please provide bash script that gives the output written below. 4. Volume of a trapezoidal prism is given below. VolumeofaTrapezoidalPrism=21(b1+b2)hL Write a bash script to

Please provide bash script that gives the output written below.

Please provide bash script that gives the output written below. 4. Volume

4. Volume of a trapezoidal prism is given below. VolumeofaTrapezoidalPrism=21(b1+b2)hL 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 Make sure to print your name Enter base (b1): 3.4 Enter base (b2): 6.2 Enter base (h):4.5 Enter base (L) : 5.5 Volume of the Trapezoida1 Prism =118.8000 cubic units. Important: For full credit, this calculation MUST work for floating point numbers also and NOT just for discrete (whole) numbers. [Look at Bash Practice Questions 02 on blackboard where it teaches you how to use the bc calculator for floating point numbers or look at the examples in page 58 of the class note]

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!