the volume of a pyramid, Mathematics

Assignment Help:

Write a script to determine the volume of a pyramid, which is 1/3 * base * height, where the base is length * width.  On time the user to enter values for the length, width, and the height and then determine the volume of the pyramid.  When the user enters every value, they will then be prompted also for either 'i' for inches, or 'c' for centimeters. (Note 2.54 cm = 1 inch).  Your script should print the volume in cubic inches with 3 decimal places.  As an instance, the output might look like this:

 

This script will calculate the volume of a pyramid.

Enter the length of the base: 50

Is that i or c? i

Enter the width of the base: 6

Is that i or c? c

Enter the height: 4

Is that i or c? i

The volume of the pyramid is xxx.xxx cubic inches.

 


Related Discussions:- the volume of a pyramid

Calculate the number-average and weight-average molar mass, Three mixtures ...

Three mixtures were prepared with very narrow molar mass distribution polyisoprene samples with molar masses of 8000, 25,000, and 100,000 as indicated below. (a) Equal numbers o

Integration by parts -integration techniques, Integration by Parts -Integra...

Integration by Parts -Integration Techniques Let's start off along with this section with a couple of integrals that we should previously be able to do to get us started. Fir

Terminology related to division, Terminology related to division :   A goo...

Terminology related to division :   A good way to remedy this situation is to familiarise children with these concepts in concrete, contexts, to start with. For instance, if a chi

Multiplyig, why is multiplying inportent in our lifes

why is multiplying inportent in our lifes

The invisible effort on learning maths, The Invisible Effort :   Although t...

The Invisible Effort :   Although the development of children is a process, what is noticed and given recognition to is the end-product. We usually speak of children having achieve

Trigonmetry, [3+tan20+tan80]/tan20+tan80

[3+tan20+tan80]/tan20+tan80

Hcf and lcm, The HCF & LCM of two expressions are respectively (x+3) and (x...

The HCF & LCM of two expressions are respectively (x+3) and (x cube-7x+6). If one is x square+2x-3 , other is? Solution) (x+3) * (x^3-7x+6) = (x^2+2x-3) * y      ( ) (HCF*LCM=

Shares and dividend, a man in rested rupee 800 is buying rupee 5 shares and...

a man in rested rupee 800 is buying rupee 5 shares and then are selling at premium of rupee 1.15. He sells all the shares.find profit

Properties of exponential form, Properties 1.   The domain of the logar...

Properties 1.   The domain of the logarithm function is (0, ∞ ) .  In other terms, we can just plug positive numbers into a logarithm! We can't plug in zero or a negative numbe

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd