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
What is the largest number (in decimal) that can be made with 6 bits?


The area of a square is given by the formula width time's height. But since the square has all the sides equal, the height is of the same measure as its width. Hence its formula is

Before going further, let us repeat an aspect of learning which is useful to keep in mind while formulating teaching strategies. A child who can add or subtract in the context of s

how should i make my project on these topic?

can you help me with entrance exam for university ? i really need help so quick


Evaluate following limits. Solution: Let's begin this one off in the similar manner as the first part. Let's take the limit of each piece. This time note that since our l

Determine the slope following lines.  Sketch the graph of line.       The line which contains the two points (-2, -3) and (3, 1) .   Solution we'll need to do is employ

It is a fairly short section.  It's real purpose is to acknowledge that the exponent properties work for any exponent.  We've already used them on integer and rational exponents al