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

Diabetes/Calcuation, #sally wieghs 100kg. According to the 50/50 basal bolu...

#sally wieghs 100kg. According to the 50/50 basal bolus rate be per meal bolus?

Definition of higher order derivatives, Higher Order Derivatives : Le...

Higher Order Derivatives : Let's begin this section with the given function.                            f ( x ) = 5x 3 - 3x 2 + 10 x - 5 By this point we have to be a

Example of distributive law, Maya gives the children examples of distributi...

Maya gives the children examples of distributive with small numbers initially, and leads them towards discovering the law. The usual way she does this is to give the children probl

Determine an actual explicit solution, Determine an actual explicit solutio...

Determine an actual explicit solution to y′ = t/y; y(2) = -1. Solution : We already identify by the previous illustration that an implicit solution to this IVP is y 2 = t 2 -

Assignment Help, I would like to work on Assignment help in Mathematics

I would like to work on Assignment help in Mathematics

Relation and functions, Prove that if f and g are functions, then f interse...

Prove that if f and g are functions, then f intersect g is a function by showing f intersect g = glA A={x:g(x)=f(x)}

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