Open the VB2015Chap11Palace SolutionPalace Solution (Palace Solution.sln) file. Create a Rectangle class similar to the one shown

Question:

Open the VB2015\Chap11\Palace Solution\Palace Solution (Palace Solution.sln) file. Create a Rectangle class similar to the one shown earlier in Figure 11-23; however, use Double variables rather than Integer variables. The application should calculate and display the number of square yards of carpeting needed to carpet a rectangular floor. Code and then test the application appropriately.

Modified Class statement entered in the Rectangle.vb file Public Class Rectangle Private intLength As Integer Private intwidth As Integer Public Property Length As Integer Get Return _intlength End Get Set(value As Integer) If value > 0 Then _intlength = value Else intlength = 0 End If End Set End Property

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: