Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
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