Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Visual Basic . Create an application that displays the area of a triangular playground in square feet. It should also display the cost of covering

Visual Basic. Create an application that displays the area of a triangular playground in square feet. It should also display the cost of covering the playground with artificial grass. Create a suitable interface. Provide list boxes for the user to enter the playgrounds base and height dimensions in yards. Both list boxes should display number from 20 to 50 in increments of 0.5. Also, provide a list box for entering the price per square foot of artificial grass. This list box should display numbers from 1 to 6 in increments of 0.5. Create a class named Triangle. The 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 class might subsequently be used in an application whose dimensions come from text boxes.) The class should include a default constructor, a parameterized constructor, and a method to calculate the area of a triangle.

Example how it should look like:

image text in transcribed

20 20.5 21 21.5 Height 20 20.5 21 21.5 Base 4.5 Price per sqft. Submit Total Area 215.25 Sqft. Total Cost for artifical grass 1184

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

]. Did you think the presentation was effective? Why or why not?

Answered: 1 week ago

Question

=+employee to take on the international assignment?

Answered: 1 week ago