0% found this document useful (0 votes)
193 views

Flowchart and Algo

1. The document describes a program to calculate the volume of a hemisphere using the formula V=(2/3*π*(radius^3)). 2. The user is prompted to input the radius, and the program calculates the volume using the given formula. 3. The output displays the calculated volume of the hemisphere.

Uploaded by

sannie
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
193 views

Flowchart and Algo

1. The document describes a program to calculate the volume of a hemisphere using the formula V=(2/3*π*(radius^3)). 2. The user is prompted to input the radius, and the program calculates the volume using the given formula. 3. The output displays the calculated volume of the hemisphere.

Uploaded by

sannie
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Area of Circle

Start

Enter The Area of Circle

ofa

Calculate the Area of Circle

Formula is Math.PI *radius*radius

Print the Output

Area of Circle

End

Algorithm

1. The formula of area of Circle is Math.PI*radius*radius.


2. Iput the are of Cricle.
3. Program will compute the Area of Circle according to the declared formula
above.
4. The output will display the answer of the Area of Circle.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace area_of_circle
{
class Program
{
static void Main(string[] args)
{
double radius, area;
Console.WriteLine("Area of circle is (Math.PE *
radius * radius)");
Console.WriteLine("Enter Radius: ");
radius = Convert.ToDouble(Console.ReadLine());
area = Math.PI * radius * radius;
Console.WriteLine("\nArea of circle is: " +
area);
Console.ReadKey();
}
}
}
Volume of Hemisphere

Start

Enter The Volume of hemisphere

ofa

Calculate the volume of hemisphere

Formula is V=(2/3*PI*(radius^))

Print the Output

Volume of hemisphere

End

Algorithm

1. The formula of Volume of hemisphere is V=(2/3*PI*(radius^).


2. Iput the are the volume of hemisphere.
3. Program will compute the Volume of hemisphere according to the declared
formula above.
4. The output will display the answer of the volume of hemisphere.
Volume of Hemisphere

Start

Enter The Volume of hemisphere

ofa

Calculate the volume of hemisphere

Formula is V=(2/3*PI*(radius^))

Print the Output

Volume of hemisphere

End

Algorithm

1. The formula of Volume of hemisphere is V=(2/3*PI*(radius^).


2. Iput the are the volume of hemisphere.
3. Program will compute the Volume of hemisphere according to the declared
formula above.
4. The output will display the answer of the volume of hemisphere.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VolumeofHemisphere
{
class Program
{
static void Main(string[] args)
{
double r, vsp, volume;
double PI = 3.141592653589793;
Console.WriteLine("Enter the Radius of the
Sphere:");
r = Convert.ToDouble(Console.ReadLine());
vsp =( 4.0/3)* PI * r * r*r;
volume = (2.0 / 3) * PI * r * r * r;
Console.WriteLine("Volume of Sphere is:
{0}",vsp);
Console.WriteLine("Volume of Hemisphere is: {0}",
volume);
Console.Read();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VolumeofHemisphere
{
class Program
{
static void Main(string[] args)
{

Double radius,raisetothe,formula,pi,area;

String radString;

Console.WriteLine(“volume of Hemisphere”);

Cosole.Writeline(“Formula is: V=(2/3*PI*(radius^))”);

Console.WriteLine(Enter the radius of Hemisphere :”)

Radstring =Console.ReadLine();

Radius = Convert.ToDouble(Radstring);

Formula = 0.666666;

Pi = 3.14159;

Raisetothe = (radius * radius * radius);

Area = (formula * pi * raisetothe);

Console.WriteLine(“The volume of

You might also like