You are to create a C# console application that allows a user to work with and modify a circle. You will use Git as source control for this project.
creating a new console application project in Visual Studio Begin by creating a new Circle class as a separate file. The Circle class should have one private integer attribute which holds radius of the circle object. The Circle class should contain a default constructor which sets the radius to the value of 1, and a
non-default constructor which sets the radius to whatever the user inputs.
The Circle class must be public, and should contain four methods, plus a default and non-default Constructor. The four methods are:
public int GetRadius()
public void SetRadius(int radius)
public double GetCircumference()
public double GetArea()
Each method should do the action as described by its method name. The SetRadius method overwrites the old radius with the new radius.
You must now create a console application to allow a user to create and work with a single circle object. By default when the program loads, it asks the user to please enter the radius of the circle. The radius must be an integer greater than zero. If any incorrect input is give, the user is informed of their mistake and asked to please enter a value again. This error handling and input validation can be done within the console application, rather than the Circle class methods.
The program should then present the user with a menu with 5 options:
- Get Circle Radius
- Change Circle Radius
- Get Circle Circumference
- Get Circle Area 5. Exit
If any incorrect input is given, the menu is shown again. Each of the first four options should work as described.
The exit option quits the program, and is the only way to exit the program (other than closing the window). The radius of the circle cannot be changed to a value less than one.