DEVRY ECET 370 Week 1 Lab 1
Check this A + tutorial guideline at
http:// www. assignmentclick. com / ecet- 370 / ecet-370-week-1-lab-1
For more classes visit http:// www. assignmentclick. com
General Instructions
Exercises 1, 2, 4, and 5 use the programs in DocSharinglabeled“ User-defined classes."
Exercises 7 and 8 use the programs in DocSharinglabeled“ Using interfaces."
Exercise 1: Review of classes Create a project using the classes in the DocSharing area labeled“ User-defined classes." Compile it, run it, and review the code that is given carefully.
Exercise 2: User-defined methods The function area of the Triangle class is the framework of the actual method. Modify it so that it calculates the area of the triangle. Write a Main class to test your area method. Note: to calculate the area of a triangle from the vertices, first find the distances between each pair of vertices to obtain the length of the sides of the triangle. Then apply Heron’ s formula to calculate the area given the length of the sides.