Create an application that displaysthe area of a triangularplayground...solved

Create an application that displaysthe area of a triangularplayground...solved

1.Create an application that displaysthe area of a triangularplayground in square feet. Itshouldalsodisplay the cost of coveringthe playgroundwithartifcialgrass. Create a suitableinterface. Providelist boxes for the user to enter the playground's base and heightdimensionsin yards. Both listboxes should display numberfrom 20 to 50 in incrementsof0.5.Alsoprovide a list box for entering the price per square foot of artificial grass. This list boxshould display numbers from 1to6 in increments of 0.5. Create a class named Triangle. Theclass should verify that the base and height dimensions are greater than 0 before assigning thevalues to the Private variables. (Although the dimensions comefrom 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 tocalculate the area of a triangle.

 

2.Jerry Schmidt, the manager of the Fiction Bookstore, uses a Microsoft Access database named Bookstokeeptrack of the books in his store (see above). The database has one table namedtblBooks. Thetable has five fields. TheBookNumber, Price, andQuantityInStockfields are numeric. The Title andAuthor fields contain text. Mr. Schmidt wants an application that he can use to enter an author's name(orpart of a name) and then display only the titles of books written by the author. Display the information inaDataGridViewcontrol; however, don't allow the user to add, delete, edit, or save records. In thisapplication, you needto allow the user to specify the records he wants to select. He will use the button totell the computer to display the selectedrecords. Mr. Schmidt also wants to display the total value of thebooks in his store.Save the solution and then start the application. Click the Exit button and then closethe solution.Zip the project folder into a single zip file.
Powered by