[solved]-Assignment 13 Starting Assignment 11 Modify Class Creates Random Complex Fractions 2 Store Q39033237

javaAssignment 13 Starting with Assignment 11 ) Modify your class so that it creates random complex fractions 2) Store the complex fractions in an array 3) Create a that calculates the magnitude of a complex number 4) Print off the array, and the magnitude of each complex fraction. Using the format below. System.out.printf 5) Sort the array in both ascending and descending order, by magnitude You can use any sorting algorithm you wish, or you can a. implements Comparable – write a int CompareTo (Object o) method b. Use Arrays.sort () note, this complex fraction method method is overloaded 6) Sort the Complex fractions by their real part. Once again, you can use any sorting algorithm you wish, or you can take advantage of the fact that the Arrays.sort method takes a second argument of a Comparator interface. Note that the Comparator interface is generic Arrays.sort (complexFraction, Comparator<Complex> () { new Show transcribed image text Assignment 13 Starting with Assignment 11 ) Modify your class so that it creates random complex fractions 2) Store the complex fractions in an array 3) Create a that calculates the magnitude of a complex number 4) Print off the array, and the magnitude of each complex fraction. Using the format below. System.out.printf 5) Sort the array in both ascending and descending order, by magnitude You can use any sorting algorithm you wish, or you can a. implements Comparable – write a int CompareTo (Object o) method b. Use Arrays.sort () note, this complex fraction method method is overloaded 6) Sort the Complex fractions by their real part. Once again, you can use any sorting algorithm you wish, or you can take advantage of the fact that the Arrays.sort method takes a second argument of a Comparator interface. Note that the Comparator interface is generic Arrays.sort (complexFraction, Comparator () { new
Expert Answer
Answer to Assignment 13 Starting with Assignment 11 ) Modify your class so that it creates random complex fractions 2) Store the c… . . .
OR

