public static void Main()
Console.WriteLine("***Painting calculator***");
Console.WriteLine("This application will calculate the area and cost to paint rectangle, circle, triangle and hexagon shapes that heve been drawn on the asphalt of the school yard");
static void CostOfRectangle()
Console.WriteLine("*** Rectangle***");
Console.WriteLine("Enter a value for the length of your rectangle in metres");
float length = Convert.ToSingle(Console.ReadLine());
Console.WriteLine("Enter a value for width of your rectangle in metres");
float width =Convert.ToSingle(Console.ReadLine());
float rectangle=length * width;
Console.WriteLine("Your area to paint is " + rectangle + "m\u00B2");
Console.WriteLine("You will need " + rectangle/10 + " lites of paint");
Console.WriteLine("Please enter a price per lite of paint($15 to $25)");
float cost =Convert.ToSingle(Console.ReadLine());
Console.WriteLine("the amount of paint required to paint the rectangle is $" + (rectangle/10)*cost);
static void CostOfTriangle()
Console.WriteLine("***Triangle***");
Console.WriteLine("Enter a value for the length of the base of your triangle in metres");
float basee = Convert.ToSingle(Console.ReadLine());
Console.WriteLine("Enter a value for height of your triangle in metres");
float height =Convert.ToSingle(Console.ReadLine());
float triangle= basee*height /2;
Console.WriteLine("Your area to paint is " + triangle + "m\u00B2");
Console.WriteLine("You will need " + triangle/10 + " lites of paint");
Console.WriteLine("Please enter a price per lite of paint($15 to $25)");
float cost =Convert.ToSingle(Console.ReadLine());
Console.WriteLine("the amount of paint required to paint the rectangle is $" + (triangle/10)*cost);
static void CostOfCircle()
Console.WriteLine("***Circle***");
Console.WriteLine("Enter a value for the radius of the circle in metres");
float radius = Convert.ToSingle(Console.ReadLine());
double circle= Math.PI*Math.Pow(radius,2);
Console.WriteLine("Your area to paint is " + Math.Round(circle,1) + "m\u00B2");
Console.WriteLine("You will need " + Math.Round(circle/10,1) + " lites of paint");
Console.WriteLine("Please enter a price per lite of paint($15 to $25)");
float cost =Convert.ToSingle(Console.ReadLine());
Console.WriteLine("the amount of paint required to paint the circle is $" + Math.Round((circle/10)*cost),1);
static void CostOfHexagon()
Console.WriteLine("***Hexagon***");
Console.WriteLine("Enter a value for the side length of your hexagon in metres");
float sidelength = Convert.ToSingle(Console.ReadLine());
double hexagon= (3*Math.Sqrt(3)*Math.Pow(sidelength,2)/2);
Console.WriteLine("Your area to paint is " + Math.Round(hexagon,1) + "m\u00B2");
Console.WriteLine("You will need " + Math.Round(hexagon/10,1) + " lites of paint");
Console.WriteLine("Please enter a price per lite of paint($15 to $25)");
double cost =Convert.ToSingle(Console.ReadLine());
Console.WriteLine("the amount of paint required to paint the rectangle is $" + Math.Round((hexagon/10),1)*cost);