Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Volume of a Rectangular Pyramid is given below. (25%) V = (1/3)lwh ** ********* *** Write a bash script to Read the values for

image text in transcribed

4. Volume of a Rectangular Pyramid is given below. (25%) V = (1/3)lwh ** ********* *** Write a bash script to Read the values for I, w and h and then calculate and print the volume of the pyramid. Here is an example run: written by: Your Name Enter the length of the rectangular base : 9.0 Enter the width of the rectangular base : 4.5 Enter the height : 10 Volume of the Rectangular Pyramid 135.000 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 57 of the class note) (YOU MUST INCLUDE THE SCRIPT FILE (.sh file) IN THE ZIP)

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions