Question: C# With Visual Studio Create a library called MyMath Contains a class called Rectangle This class will contain 2 private floats . o Width o

C# With Visual Studio

C# With Visual Studio Create a library called MyMath Contains a class

Create a library called MyMath Contains a class called Rectangle This class will contain 2 private floats . o Width o Height The class will have 2 properties to set and get these values . The class will contain 2 more properties (read only) o Perimeter Will calculate and return a float of the perimeter of the rectangle o Area Will calculate and return a float of the area of the rectangle * Compile this library Create a new project Add the MyMath library to your project * Use the library to create an object of type rectangle o (Rectangle myrect- new Rectangle):) Set its width and height and have it output the perimeter o myrect.width- o myrect.height- o message box myrect Perimeter Create another library Once it is created, rename the library to be YourName MyCoolMathLibrary, (you replace ourName with your name) Copy the code from your MyMath library into this library Add a function call PrintArea, o This method will message box "the area of the rectangle is: " and then print the area Edit your original project and add this new library to it Alias this new library to something easy (e.g. shortMath) . Fix any errors Create a new object for the new library rectangle, set its values and use the new PrintArea method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!