Question: Modify the Rectangle class to use Double variables rather than Integer variables. Change the name of the GetArea method to GetAreaSqFt. Add another method to

Modify the Rectangle class to use Double variables rather than Integer variables.
Change the name of the GetArea method to GetAreaSqFt.
Add another method to the class. Use GetAreaSqYds as the methods name. The method should calculate and return the area of a rectangle in square yards.
The applications 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

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!