the volume of a pyramid, Mathematics

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.

 

Posted Date: 3/20/2013 1:08:52 AM | Location : United States







Related Discussions:- the volume of a pyramid, Assignment Help, Ask Question on the volume of a pyramid, Get Answer, Expert's Help, the volume of a pyramid Discussions

Write discussion on the volume of a pyramid
Your posts are moderated
Related Questions
Nine minus five times a number, x, is no less than 39. Which of the subsequent expressions represents all the possible values of the number? Translate the sentence, "Nine minus

We will begin this chapter by looking at integer exponents.  Actually, initially we will suppose that the exponents are +ve as well. We will look at zero & negative exponents in a

Explain the Vertex Formula ? The vertex formula is a convenient way of finding the vertex of the graph for any quadratic function. The graph of the quadratic equation f(x) = ax

Josephine is on an 1,800 calorie per day diet. She tries to remain her intake of fat to no more than 30% of her overall calories. Based on an 1,800 calorie a day diet, what is the

How do you simplify 10:30:45

Draw the typical profile(s) of Shoppers'' Stop customers segments.

More Volume Problems : Under this section we are decide to take a look at several more volume problems. Though, the problems we see now will not be solids of revolution while we

find the area of the region within the cardioid r=1-cos

what is mantisa

conclusion on share and dividend project