{"id":18960,"date":"2021-08-29T15:12:53","date_gmt":"2021-08-29T09:42:53","guid":{"rendered":"https:\/\/python-programs.com\/?p=18960"},"modified":"2021-11-22T18:37:10","modified_gmt":"2021-11-22T13:07:10","slug":"python-program-to-calculate-the-surface-area-and-volume-of-a-hemisphere","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-calculate-the-surface-area-and-volume-of-a-hemisphere\/","title":{"rendered":"Python Program to Calculate the Surface Area and Volume of a Hemisphere"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Compute x^n\/n!<\/a>
\nMath Module :<\/strong><\/p>\n

Python’s math module is a built-in module. By importing this module, we can perform mathematical computations.<\/p>\n

Numerous mathematical operations like ceil( ),floor( ),factorial( ),mod( ),value of pi ,…..etc .can be computed with the help of math module.<\/p>\n

Hemisphere:<\/strong><\/p>\n

The word hemisphere can be broken down into hemi and sphere, where hemi means half and sphere is a 3D geometric shape used in mathematics.<\/p>\n

As a result, a hemisphere is a three-dimensional geometric shape that is half of a sphere, with one side flat and the other as a circular bowl.<\/p>\n

Formula to calculate the surface area of a Hemisphere<\/strong>:<\/b><\/p>\n

surface area = 3\ud835\uded1r\u00b2<\/strong><\/p>\n

In which, r<\/strong> is the radius of the hemisphere.<\/p>\n

Formula to calculate the volume of a Hemisphere<\/b>:<\/b><\/strong><\/div>\n
<\/div>\n
Volume = (2\/3)*\ud835\uded1*r3<\/strong><\/div>\n
<\/div>\n
Given the Hemisphere’s radius and the task is to calculate the surface area and volume of the given Hemisphere.<\/div>\n
\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Hemisphere's Radius = 9<\/pre>\n

Output:<\/strong><\/p>\n

The Surface Area of the given Hemisphere with radius { 9  } =  763.02\r\nThe Volume of the given Hemisphere with radius { 9 } =  1526.04<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Hemisphere's Radius = 12.5<\/pre>\n

Output:<\/strong><\/p>\n

The Surface Area of the given Hemisphere with radius { 12.5 } = 1471.875\r\nThe Volume of the given Hemisphere with radius { 12.5 } = 4088.5416666666665<\/pre>\n

Program to Calculate the Surface Area and Volume of a Hemisphere in Python<\/h2>\n

Below are the ways to Calculate the surface area and volume of a hemisphere with the given hemisphere’s\u00a0 radius :<\/p>\n