[Solved] CS143-Assignment 5

$25

File Name: CS143_Assignment_5.zip
File Size: 169.56 KB

SKU: [Solved] CS143-Assignment 5 Category: Tag:
5/5 - (1 vote)

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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS143-Assignment 5[Solved] CS143-Assignment 5
$25