Open the Palace Solution.sln file contained in the VB2017Chap10Palace Solution folder. a. Use Windows to copy the
Question:
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 Answer: