Question: Open the Palace Solution.sln file contained in the VB2017Chap10Palace Solution folder. a. Use Windows to copy the Rectangle.vb file from the VB2017Chap10 folder to the

Open the Palace Solution.sln file contained in the VB2017\Chap10\Palace Solution folder.
a. Use Windows to copy the Rectangle.vb file from the VB2017\Chap10 folder to the Palace Project folder. Then, use the Add Existing Item option on the Project menu to add the file to the project. 

b. Modify the Rectangle class to use Double variables rather than Integer variables. 

c. Change the name of the GetArea method to GetAreaSqFt. 

d. Add another method to the class. Use GetAreaSqYds as the method’s name. The method should calculate and return the area of a rectangle in square yards. 

e. The application’s Calculate button should calculate and display the number of square yards of carpeting needed to carpet a rectangular floor. Code the btnCalc_Click procedure. Display the number of yards with one decimal place. Save the solution and then start and test the application.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVer... View full answer

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 Programming Microsoft Visual Basic Questions!