Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

PART B A hailstone sequence is considered long it its length is greater than its starting value. For example, the hailstone sequence in example 1 (5, 16, 8, 4, 2, 1) is considered long because its length (6) is greater than its starting value (5). The hailstone sequence in example 2 (8, 4, 2, 1) is not considered long because its length (4) is less than or equal to its starting vaiue (8). Write the method is LongSeq(int n), which returns true if the hailstone sequence starting with n is considered long and returns false otherwise. Assume that hail stone Length works as intended, regardless of what you wrote in PART A. You must use hail stone Length appropriately to receive full credit. I" Returns true if the hailstone sequence that starts with n is considered long * and false otherwise, as described in part (b). * Precondition: n > 0 t / public static boolean isLongSeq(int n) t