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

Factors, write down all the factors of 36

write down all the factors of 36

Write down the first few terms of the sequences, Write down the first few t...

Write down the first few terms of each of the subsequent sequences. 1. {n+1 / n 2 } ∞ n=1 2. {(-1)n+1 / 2n} ∞ n=0 3. {bn} ∞ n=1, where bn = nth digit of ? So

Mode, What is the median for this problem (55+75+85+100+100)

What is the median for this problem (55+75+85+100+100)

Inequation, Solve the inequation: |x|

Solve the inequation: |x|

Explain that odd positive integer to be a perfect square, Show that for odd...

Show that for odd positive integer to be a perfect square, it should be of the form 8k +1. Let a=2m+1 Ans: Squaring both sides we get a2 = 4m (m +1) + 1 ∴ product of two

Calculate the total surface area which is exposed , A golf ball has a diame...

A golf ball has a diameter equal to 4.1cm. Its surface has 150 dimples each of radius 2mm. Calculate the total surface area which is exposed to the surroundings assuming that the d

Calculate the width of the river, A surveyor is hired to calculate the widt...

A surveyor is hired to calculate the width of a river. Using the example provided, Calculate the width of the river. a. 48 ft b. 8 ft c. 35 ft d. 75 ft

Statistics, what is the meaning of statistics

what is the meaning of statistics

Converting., I need help converting my project fractions into 1

I need help converting my project fractions into 1

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