CSC 1350 : Final Exam Review With Notes
Document Summary
Name: this exam consists of two parts, use only javatmstandard platform edition 8. 0 compliant syntax in your code, blue book is required. Worth score x1 = 40 x2 = 60. Do not turn this page until you are told to do so. Instruction: this section is worth 40 points: complete the implementation this static method without the use of any standard java math library method and avoid unnecessary computation in determining the return value. Use an "if" statement only when throwing an exception. * computes the series n + n^3 + n^5 + n^(2k-1). * @param n the base of the terms of the series. * @throw illegalargumentexception when k is less than 1. public static double oddseries(double n, int k) //complete this method: consider the code segment below. int[][] x = {{1}, {5, 0, 0, 0, 0}}; int i,j; for (i=0; i