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
STATISTICS AND PROBABILITY : Statistics  are the  only  tools  by  which  an  opening  can  be  cut  through  the formidable  thicket  of difficulties  that bars the  path  of


DEVELOPING ESTIMATION SKILLS :  A study was done with some Class 3 and Class 4 children of five village schools to gauge how well they had understood the standard algorithms. The

If angle between asymtotes of hyperbola x^2/a^2-y^2/b^=1 is 120 degrees and product of perpendicular drawn from foci upon its any tangent is 9. Then find the locus of point of inte

How to Simplifying Square Roots ? To simplify square roots, 1. Factor the radicand into primes. 2. Circle each pair of like numbers. 3. For each pair of like numbers, place

advanteges of duality

The time has at last come to describe "nice enough". We've been using this term during the last few sections to explain those solutions which could be used to form a general soluti

zeroes of polynomial 2x2-3x-2

I need answers for these 10 exam questions: 1.Input-output (Leontief) model: main assumptions and construction. Definition of productivity. Necessary condition of productivity of i

A screening test for a newly discovered disease is being evaluated. In order to determine the effectiveness of the new test, it was administered to 900 workers; 150 of the individu