public static string YourName;
public static int lengthtop;
public static int lengthbottom;
public static int perimeter;
public static void Main()
public static void Information()
Console.WriteLine(" Basic Geometry Program!");
Console.WriteLine("Welcome to my Basic Geometry Software where I can either Draw a Square or Rectangle");
Console.WriteLine(" Then I can tell the Area and Perimeter or either the Square or Rectangle");
Console.WriteLine(" Press Enter to Continue: ");
public static void Name()
Console.WriteLine("Please Enter your Name: ");
Global.YourName = Console.ReadLine();
public static void Menu()
Console.WriteLine(" Menu");
Console.WriteLine("1. Draw a Square");
Console.WriteLine("2. Draw a Rectangle");
Console.WriteLine("3. Exit the Program");
Console.WriteLine(Global.YourName + " Please Choose one of the Options Above in the Menu: ");
choices = int.Parse(Console.ReadLine());
if ((choices < 1) || (choices > 3))
public static void Square()
Console.WriteLine("Welcome " + Global.YourName + " to the Square Maker!");
Console.WriteLine("Please enter the length and the width of the Square you want me to draw below:");
Global.lengthtop = int.Parse(Console.ReadLine());
Global.width = Global.lengthtop;
Global.lengthbottom = Global.lengthtop;
public static void Rectangle()
Console.WriteLine("Welcome " + Global.YourName + " to the Rectangle Maker!");
Console.WriteLine("Please enter the length of the rectangle you want me to draw below:");
Global.lengthtop = int.Parse(Console.ReadLine());
Console.WriteLine("Please enter the width of the rectangle you want me to draw below:");
Global.width = int.Parse(Console.ReadLine());
Global.lengthbottom = Global.lengthtop;
public static void Exit()
Console.WriteLine(" Basic Geometry Program!");
Console.WriteLine(" Thank You " + Global.YourName + " for Using My Geometry Program Drawer!");
Console.WriteLine(" Come Back Again Soon!");
public static void Start()
for (int i = 1; i <= 10; i++)
public static void Topnumber()
int midway = (Global.lengthtop / 2) + 1;
for (int k = 1; k <= midway; k++)
Console.Write(Global.lengthtop);
for (int i = 1; i <= Global.lengthtop; i++)
public static void Sides()
int midway = (Global.width / 2) + 1;
for (int i = 1; i <= Global.width; i++)
for (int n = 1; n <= Global.lengthtop; n++)
Console.Write(" " + Global.width);
public static void Bottom()
for (int i = 1; i <= Global.lengthtop; i++)
public static void RectangleMath()
Console.WriteLine("The Area of Your Rectangle " + Global.YourName + " with a length of " + Global.lengthtop);
Console.WriteLine("and a width of " + Global.width);
Global.area = Global.lengthtop*Global.width;
Console.WriteLine("is equal to = " + Global.area);
Global.perimeter = 2*Global.lengthtop + 2*Global.width;
Console.WriteLine("and the Perimeter is equal to = " + Global.perimeter);
Console.WriteLine("Press Enter to Continue: ");
public static void SquareMath()
Console.WriteLine("The Area of Your Square " + Global.YourName + " with a length and width of " + Global.lengthtop);
Global.area = Global.lengthtop*Global.width;
Console.WriteLine("is equal to = " + Global.area);
Global.perimeter = 2*Global.lengthtop + 2*Global.width;
Console.WriteLine("and the Perimeter is equal to = " + Global.perimeter);
Console.WriteLine("Press Enter to Continue: ");