CS143-Assignment 5 Solved

25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

Write a generic class with a type parameter constrained to any type that implements Comparable. The constructor should accept an array of such objects. The class should have methods that return the highest and lowest values in the array. Write a second class with a main method to test.

Chapter 18, Programming Challenge 7. Number Analyzer

Write a generic class with a type parameter constrained to the Number class or any subclass of Number. the constructor should accept an array of such objects. the class should have methods that return the highest and lowest values in the array, the total of the elements, and the average value of all the elements. Write a second class with a main method to test.

Chapter 18, Programming Challenge 8. Generic Random Permutation

Write a generic class with a generic method that returns a random permutation of the array list passed to it as a parameter (i.e., shuffle). Write a second class with a main method to test.

  • Assignment5-fpzgvh.zip