public static void Main()
static void Introduction()
Console.WriteLine("*** Painting Calulator ***\n");
Console.WriteLine("This application will calculate the area and cost to paint rectangle, circle, triangle, and hexagon shapes that have been drawn on the asphalt of the school yard.\n");
Console.WriteLine("*** Rectangle ***\n");
Console.WriteLine("Enter the length of the rectangle in meters:\n");
double rectangleLength = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter the width of the rectangle in metres:\n");
double rectangleWidth = Convert.ToDouble(Console.ReadLine());
double rectangleArea = rectangleLength * rectangleWidth;
double rectangleArea2 = Math.Round(rectangleArea, 1);
Console.WriteLine("The area to paint is " + rectangleArea2 + "m\u00B2\n");
double litres = rectangleArea2/10;
double litresRounded = Math.Round(litres, 1);
Console.WriteLine("You will need " + litresRounded + " litres of paint to cover the rectangle.\n");
Console.WriteLine("Enter the cost per litre of paint in dollars:\n");
double costPerLitre = Convert.ToDouble(Console.ReadLine());
double litresTotalCost = litres * costPerLitre;
double litresTotalCost2 = Math.Round(litresTotalCost, 1);
Console.WriteLine("The total cost to paint the rectangle is: " + litresTotalCost2 + "\n");
Console.WriteLine("*** Triangle ***\n");
Console.WriteLine("Enter the base of the triangle:\n");
double triangleBase = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter the height of the triangle:\n");
double triangleHeight = Convert.ToDouble(Console.ReadLine());
double triangleArea = Math.Round(0.5*triangleBase*triangleHeight, 1);
Console.WriteLine("The area to paint is " + triangleArea + "m\u00B2\n");
double litres = triangleArea/10;
double litres2 = Math.Round(litres, 1);
Console.WriteLine("You will need " + litres2 + " litres of paint to cover the triangle.\n");
Console.WriteLine("Enter the cost per litre of paint in dollars:\n");
double costPerLitre = Convert.ToDouble(Console.ReadLine());
double triangleTotalCost = litres * costPerLitre;
double triangleTotalCost2 = Math.Round(triangleTotalCost, 1);
Console.WriteLine("The total cost to paint the triangle is: " + triangleTotalCost2 + "\n");
Console.WriteLine("*** Circle ***\n");
Console.WriteLine("Enter the radius of the Circle:\n");
double circleRadius = Convert.ToDouble(Console.ReadLine());
double circleArea = Math.Round(circleRadius*Math.PI, 1);
Console.WriteLine("The area to paint is " + circleArea + "m\u00B2\n");
double litres = circleArea/10;
double litres2 = Math.Round(litres, 1);
Console.WriteLine("You will need " + litres2 + " litres of paint to cover the circle.\n");
Console.WriteLine("Enter the cost per litre of paint in dollars:\n");
double costPerLitre = Convert.ToDouble(Console.ReadLine());
double circleTotalCost = litres * costPerLitre;
double circleTotalCost2 = Math.Round(circleTotalCost, 1);
Console.WriteLine("The total cost to paint the circle is: " + circleTotalCost2 + "\n");
Console.WriteLine("*** Hexagon ***\n");
Console.WriteLine("Enter the side length of the Hexagon:\n");
double hexagonSideLength = Convert.ToDouble(Console.ReadLine());
double hexagonArea = Math.Round(3*Math.Sqrt(3)*Math.Pow((hexagonSideLength), 2)/2, 1);
Console.WriteLine("The area to paint is " + hexagonArea + "m\u00B2\n");
double litres = hexagonArea/10;
double litres2 = Math.Round(litres, 1);
Console.WriteLine("You will need " + litres2 + " litres of paint to cover the hexagon.\n");
Console.WriteLine("Enter the cost per litre of paint in dollars:\n");
double costPerLitre = Convert.ToDouble(Console.ReadLine());
double hexagonTotalCost = litres * costPerLitre;
double hexagonTotalCost2 = Math.Round(hexagonTotalCost, 1);
Console.WriteLine("The total cost to paint the hexagon is: " + hexagonTotalCost2 + "\n");