Determine the volume of the pyramid

Assignment Help MATLAB Programming
Reference no: EM13127212

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.

Reference no: EM13127212

Questions Cloud

Illustrate what total amount of gain or loss : Illustrate what total amount of gain or loss on its securities should be included in Nance's income statement for the year ended December 31, 2007?
Probability that sample of steady smokers spend in a range : Assume a steady smoker spends on average $20 with a standard deviation of $5 per week on cigarettes. What is the probability that a sample of 100 steady smokers spend between $19.50 and $21?
.calculate the mass of 0.1550l of benzene : the density of benzene at 15 degrees C is 0.8787g/ml.calculate the mass of 0.1550L of benzene at this temp.
Explain how many units of the sale item should store stock : Explain how many units of the sale item should the store stock in order to have at most a 1 percent chance of running short of the item on the day of the sale?
Determine the volume of the pyramid : 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.
Bond issue at the time of sale : The bonds were quoted at 94 and pay interest quarterly on September 30th and December 31st. What were the total proceeds of the bond issue at the time of sale:
Estimate the wavelength (in nm) : Protons can be accelerated to speeds near that of light in particle accelerators. Estimate the wavelength (in nm) of such a proton moving at 2.90 X 108 m/s. (Mass of a proton=1.673 X 10-27 kg)
Multiplication of complex numbers problem : Is the multiplication of complex numbers similar to multiplication of polynomials? Is it possible to apply the FOIL method when multiplying complex numbers?
Probability all four of selected homes have security system : Four homes are selected at random: What is the probability all four of the selected homes have a security system? (Round your answer to 4 decimal places.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Mobile robot control and potential field

Write a MATLAB code to compute forces due to each obstacle and goal. Compute total force on vehicle at point(x,y).

  Write a system program for bus arbiter

The bus arbiter is a device used in multi-master system with shared bus. It is used to allocate the control of the shared system bus to one master at a time depending priority.

  Write a program to compute a

Write a program to compute A. Test it with P = $55,000 and interest rate of 6.6% (i = 0.066). Compute results for n = 1, 2, 3, 4, and 5 and display the results as a table with headings and columns for n and A

  Design and explain a computer-based simulation model

Design and explain a computer-based simulation model which you will use to estimate the probability that among 25, 50, 75, 100, 500, or 1000 randomly chosen people, at least 2 people share the same birthday.

  Fourier transform and biosignal analysis

Fourier Transform and Biosignal Analysis - series data into its frequency components for the purpose of signal analysis and processing.

  Construct the shear force and bending moment diagrams

Write the algorithm and draw the flowchart for each problem

  Anatomy of a machine

Need a Machine Learning application written in matlab to be able to predict, based on certain selected features of wine, which variants of wine are likely to score above a 5 out of 10 quality score.

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Determine the stability status for the digital system

Sketch the z-plane pole-zero plot and determine the stability status for the following digital system.

  Determine the inputs, outputs, relevant formulas

determine the inputs, outputs, relevant formulas

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

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