/********************************************************************** * N-Body Simulation readme.txt template **********************************************************************/ Name: PennKey: Recitation: Hours to complete assignment (optional): /********************************************************************** * Have you enter all help, collaboration, and outside resources * in your help log? If not, do so now. (And in future, make sure * you make your help log entries as you go, not at the end!) * * If you did not get any help in outside of TA office hours, * and did not use any materials outside of the standard * course materials and piazza, write the following statement below: * "I did not receive any help outside of TA office hours. I * did not collaborate with anyone, and I did not use any * resources beyond the standard course materials." **********************************************************************/ /********************************************************************** * Consider the class below: * * public class Triangle { * public double sideA; * public double sideB; * public double sideC; * * public Triangle(double a, double b, double c) { * sideA = a; * sideB = b; * sideC = c; * } * } * * Write a function in the space below (not in Dr. Java, though you * can test it there) isEquilateral(Triangle t) that returns true if t * is an equilateral triangle (that is, all sides are equal). Assume * this function is NOT in Triangle.java. **********************************************************************/ /********************************************************************** * Compare this approach to the approach in HW2. Why is it better to * decompose a problem using objects? **********************************************************************/ /********************************************************************** * Describe any serious problems you encountered. **********************************************************************/ /********************************************************************** * All the questions below are optional, but we value your feedback. **********************************************************************/ /********************************************************************** * Difficulty - Very Difficult, Somewhat Difficult, Somewhat Easy, * Very Easy (you may add comments alongside your rating). **********************************************************************/ /********************************************************************** * Quality of the Write-up - Very Good, Somewhat Good, Somewhat Bad, * Very Bad (you may add comments alongside your rating). **********************************************************************/ /********************************************************************** * Quality of the Submission Tests: Very Good, Somewhat Good, * Somewhat Bad, Very Bad (you may add comments alongside your rating). **********************************************************************/ /********************************************************************** * Did this assignment help you understand objects better? Helped * significantly, helped somewhat, barely helped, did not help at all. **********************************************************************/