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

Definition of a function, A function is a relation for which each of the va...

A function is a relation for which each of the value from the set the first components of the ordered pairs is related with exactly one value from the set of second components of t

Derivatives of trig functions, Derivatives of Trig Functions In this s...

Derivatives of Trig Functions In this section we will see derivatives of functions other than polynomials or roots of polynomials. We'll begin this process off through taking

Trig identities, What is the exact vale of sin(theta/2) when sintheta=3/5, ...

What is the exact vale of sin(theta/2) when sintheta=3/5, pi/2

What are various strategies adopted for learning maths, Give some children ...

Give some children around you a task in mathematics. The task should be in an area in which they' have not been given a large dose of algorithms and strategies. Do all of them foll

Differential equations, Find the normalized differential equation which has...

Find the normalized differential equation which has {x, xex} as its fundamental set

How many multiplication required to calculate matrix product, (a) Assume th...

(a) Assume that A is a m 1 ×m 2 matrix and B is a m 2 ×m 3 matrix. How many multiplications are required to calculate the matrix product AB? (b) Given that A 1 is a 20 × 50 m

Integrated marketing, #question.Explain its nature and how it influences th...

#question.Explain its nature and how it influences the integrated marketing communications mix and distinguish between tactical and strategic use of integrated marketing communicat

Helping children learn mathematics, Here we have focussed on how mathematic...

Here we have focussed on how mathematics learning can be made meaningful for primary school children. We have done this through examples of how children learn and how we can create

Explain venn diagrams, Q. Explain Venn diagrams? Ans. Venn diagram...

Q. Explain Venn diagrams? Ans. Venn diagrams, named after the Englishman John Venn, are "area" or "region" diagrams that can be used to help visualize and organize differe

Scatter graphs, Scatter Graphs - A scatter graph is a graph that compr...

Scatter Graphs - A scatter graph is a graph that comprises of points which have been plotted but are not joined through line segments - The pattern of the points will defin

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