The script presented in this page is a tool to calculate surface area, volume and other dimensions (radius, diagonal, center of gravity) of various uniform 3D objects: cube, barrel, cone, sphere, torus, cylinder, pyramid, parallelepiped, hexagonal prism, ...
This calculator shows also the mathematical formulas used to calculate the volume, area, and the other dimensions.

Calculate Volume and Area

JavaScript script to calculate volume and surface area.
Find volume, and area of various 3d objects.

Select an object


• To Download this script, click: Volume and Surface Area Calculator.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which meta tag provides a short description of the page?
<meta content="..."> <meta description="..."> <meta http-equiv="...">
<meta name="description" content="70-160 characters that describes the content of the page" />
Which CSS property is used to stop the wrapping effect of the "float"?
clear text-align position
#some_id {
  clear: both;
}
Click on the method which gets an array with all the elements in the document that have a specified tag name.
getElementsByName() getElementById() getElementsByTagName()
var divs = document.getElementsByTagName("div");
var nr_divs = divs.length;
alert(nr_divs);
Indicate the PHP function which returns the number of elements in array.
is_[) count() strlen()
$arr =[7, 8, "abc", 10);
$nri = count($arr);
echo $nri;        // 4
Volume and Surface Area Calculator for 3D objects

Last accessed pages

  1. Add Pause in JavaScript script (12533)
  2. Redirects (1536)
  3. PHP getElementById and getElementsByTagName (32883)
  4. Ajax script to Save Canvas Image on Server (4354)
  5. Node.js Move and Copy file (13829)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (1440)
  2. Contact page - CoursesWeb (1403)
  3. Tabs effect with CSS (1398)
  4. PHP getElementById and getElementsByTagName (665)
  5. Get Attribute (ID, Class, Name, Title, Src) with jQuery (542)