Description of this paper

You must include commenting in all of these assignments at the top

Description

solution


Question

You must include commenting in all of these assignments at the top. Marks will be deducted for inadequate documentation. Part A: This question is to be submitted to the instructor in the form of a Word (or Open Office) document containing the Java code and appropriate screen capture(s) of the output. Problem 15.3 (Page 592) Create a test program to demonstrate the working method with at least two different ArrayLists. Problem 15.17 (Page 594) In addition to the instructions provided, modify the program to use an array to hold the numerator and denominator where index = 0 represents the numerator and index=1 represents the denominator. Part B: Write code and test the solutions for the following problems from the textbook. Submit the.java files for each question to CMS. The answers are due on March 1st and the programs are to be demonstrated to the Teaching Assistant (Greg) by March 7th. He will ask questions to make sure you understand the material. Any two of the following three programs: Problem 15.7 (Page 593) Problem 15.9 (Page 593) Problem 5.19 (Page 594) For part A do two of them: *15.3 part A (Shuffle ArrayList) Write the following method that shuffles an ArrayList of numbers: public static void shuffle(ArrayList list) _____________________________. *15.17 part A. (Use BigInteger for the Rational class) Redesign and implement the Rational class in Listing 15.11 using BigInteger for the numerator and denominator. Part B:please do not do all of them just do any two of them:. *15.7 part B (Enable GeometricObject comparable) Modify the GeometricObject class to implement the Comparable interface, and define a static max method in the GeometricObject class for finding the larger of two GeometricObject objects. Draw the UML diagram and implement the new GeometricObject class. Write a test program that uses the max method to find the larger of two circles and the larger of two rectangles... *15.19 part B(Math: The Complex class) A complex number is a number in the form a + bi,. where a and b are real numbers and i is 2-?1. The numbers a and b are known as the real part and imaginary part of the complex number, respectively. You can perform addition, subtraction, multiplication, and division for complex numbers using the following formulas:. a + bi + c + di = (a + c) + (b + d)i? a + bi - (c + di) = (a - c) + (b - d)i? (a + bi)*(c + di) = (ac - bd) + (bc + ad)i (a+bi)/(c+di)=(ac+bd)/(c2 +d2)+(bc-ad)i/(c2 +d2). You can also obtain the absolute value for a complex number using the fol-. lowing formula:.

 

Paper#69486 | Written in 18-Jul-2015

Price : $27
SiteLock