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

Chp 8 Study, Center and Radius 1)(x+2)^2-(y-3)^2=4

Center and Radius 1)(x+2)^2-(y-3)^2=4

Wavy curve method, In order to compute the inequalities of the form ...

In order to compute the inequalities of the form   where n 1 , n 2 , ....... , n k , m 1 , m 2 , ....... , m p are natural and real numbers and a 1 , a 2 , ... , a k ,

Fraction, give some examples of fractions that are already reduce

give some examples of fractions that are already reduce

Example to understanidng of multiplication, 6-year-old Rahul wasn't able to...

6-year-old Rahul wasn't able to understand multiplication when it was thrust upon him in school. His mother discussed this problem with some of us. On the basis of suggestions that

Normal distribution, Normal Distribution Figure 1 The norm...

Normal Distribution Figure 1 The normal distribution reflects the various values taken by many real life variables like the heights and weights of people or the ma

Functions and graphs, Functions and Graphs Need assistance, Please de...

Functions and Graphs Need assistance, Please describe Functions and Graphs.

Completely factored polynomial, Factoring polynomials Factoring polynom...

Factoring polynomials Factoring polynomials is done in pretty much the similar manner.  We determine all of the terms which were multiplied together to obtain the given polynom

Pythagorean theorem, when one side of a triangle is 15cm and the bottom of ...

when one side of a triangle is 15cm and the bottom of the triangle is 12cm what would x be rounded to the nearest tenth?

Proof of limit comparison test - sequences and series, Proof of Limit Compa...

Proof of Limit Comparison Test As 0  Now, as   we know that for large enough n the quotient a n /b n should be close to c and thus there must be a positive integer

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