Question: Create an application, using the following names for the solution and project, respectively: Playground Solution and Playground Project. Save the application in the VB2015Chap11 folder.

Create an application, using the following names for the solution and project, respectively: Playground Solution and Playground Project. Save the application in the VB2015\Chap11 folder. The application should display the area of a triangular playground in square feet. It should also display the cost of covering the playground with artificial grass.

a. Create a suitable interface. Provide list boxes for the user to enter the playground’s base and height dimensions in yards. Both list boxes should display numbers from 20 to 50 in increments of 0.5. Also, provide a list box for entering the price per square foot. This list box should display numbers from 1 to 6 in increments of 0.5.

b. Create a class named Triangle. The Triangle class should verify that the base and height dimensions are greater than 0 before assigning the values to the Private variables. (Although the dimensions come from list boxes in this application, the Triangle class might subsequently be used in an application whose dimensions come from text boxes.) The class should also include a default constructor, a parameterized constructor, and a method to calculate the area of a triangle.

c. Code the application and then test it appropriately.

Step by Step Solution

3.39 Rating (180 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a b c Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Playground P... 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 with Microsoft Visual Basic 2015 Questions!