Question: I need help finishing this coding assignment! Below are the directions of the assignment along with a code to start off with The code must

I need help finishing this coding assignment!

Below are the directions of the assignment along with a code to start off with

The code must be done in C# and must be EXTREAMLY easy to understand as I am a begnner!

Thanks for the help!

------------------------------------------------------------------------------------------------

Directions

You need to implement a WinForm application that icludes Rectangle back-end class that is testable by frmRectangleTest class. Description by example using Console app: RectangleTest below

using System; public class RectangleTest { public static void Main( string[] args ) { Rectangle rectangle = new Rectangle(); int choice = GetMenuChoice(); while ( choice != 3 ) { try { switch (choice) { case 1: Console.Write( "Enter length: " ); rectangle.Length = Convert.ToDouble( Console.ReadLine() ); break; case 2: Console.Write( "Enter width: " ); rectangle.Width = Convert.ToDouble( Console.ReadLine() ); break; } Console.WriteLine(rectangle.ToString()); } catch ( ArgumentOutOfRangeException ex ) { Console.WriteLine( ex.Message ); } Console.WriteLine(); choice = GetMenuChoice(); } } // displays a menu and returns the chosen value private static int GetMenuChoice() { Console.WriteLine( "1. Set Length" ); Console.WriteLine( "2. Set Width" ); Console.WriteLine( "3. Exit" ); Console.Write( "Choice: " ); return Convert.ToInt32( Console.ReadLine() ); } } Example of the output w/o GUI (MIS 118) 1. Set Length 2. Set Width 3. Exit Choice: 1 Enter length: 10 Length: 10 Width: 1 Perimeter: 22 Area: 10 1. Set Length 2. Set Width 3. Exit Choice: 2 Enter width: 12 Length: 10 Width: 12 Perimeter: 44 Area: 120 1. Set Length 2. Set Width 3. Exit Choice: 1 Enter length: 15 Length: 15 Width: 12 Perimeter: 54 Area: 180 1. Set Length 2. Set Width 3. Exit Choice: 

------------------------------------------------------

Thank you so much for all the help mates!

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!