[SOLVED] SOLVED: TriangleCollection

23.99 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

rar file icon Triangle.java-1.rar (9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (1 vote)

We will be using Triangle.java file from the assignment 5. You need to add a few more methods to your class Triangle. You will be creating a new class called TriangleCollection. This class should be defined in a file named “TriangleCollection.java”. The class TriangleCollection will contain two instance variables only; a one dimensional array called “collection ” and a count to keep count of the number of Triangles in the collection. The class TriangleCollection must include the following constructor and methods. (If your class does not contain any of the following methods, points will be deducted. You can add more methods if you need to. Save the TriangleCollection class in a file called TriangleCollection.java and use the following program stored Assignment8.java, which has the main method to test your class. Please study the code before writing your class TriangleCollection. Here is the description for each option:

  • Triangle.java-1.rar