Question: C# programming please Create a class named Rectangle that meets the following requirements. The class should be initialized with a constructor containing the following information

C# programming please  C# programming please Create a class named Rectangle that meets the

Create a class named Rectangle that meets the following requirements. The class should be initialized with a constructor containing the following information length width height The class should have properties (get set accessors) for any instance variables (class level variables). Provide Methods for calculating the area (area-2ab^+2bc^+ac) and the volume (volume-abc), also a method to display your results. Allow the user to enter 5 new values, display the new results but at the same time assign those results to the following arrays Results For Volume and Results For Area. Finally display the values for the both arrays and display to total for both arrays. Output example: Rectangle dimensions Length 3 Width: 4 Height 5 Area is: 94 Volume is: 60 Enter new values: Length: 5 Width: 10 Height: 3 Area is: 190 Volume is: 150 (You need to prompt the user to enter five new values) Volumes results: 60, 150, 0, 0, 0 Total volume: 210 Area results: 94, 190, 0, 0, 0 Total area: 184

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!