Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What is earnings per share and how can it be diluted?

Answered: 1 week ago

Question

Why should an employer be concerned about negligent hiring?

Answered: 1 week ago

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

What is meant by planning or define planning?

Answered: 1 week ago