Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Java project named project - 7 from the instructions for one of the exercises at the conclusion of Chapter 2 0

Create a new Java project named "project-7" from the instructions for one of the exercises at the conclusion of Chapter 20:
20.4(Generic Method selectionSort) Complete this assignment as written for a maximum of 9 out of 10 points ; a reminder that the compareTo method is required here (in place of relational operators ==,>,<, etc.) because the wrapper types Integer and Float both are classes
20.5(Overloaded Generic Method printArray) Complete this assignment as written for a maximum of 8 out of 10 points ; for this exercise keep all the original code from Fig. 20.3 in the textbook and simply include this additional method and functionality in the updated program; an IndexOutOfBoundsException (from the Java API library) is thrown if lowSubscript and highSubscript are not both between zero (0) and one less than the number of elements in the array, or if lowSubscript is greater to highSubscript (Note: there is no such thing as "InvalidSubscriptException" as specified for this exercise in the textbook)
20.7(Generic Method isEqualTo) Complete this assignment as written for a maximum of 9(1)/(2) out of 10 points ; write this exercise as an interactive application with user input from a Scanner object for input; use methods of class String or class Character to test the user input before converting to the correct type; throw a InvalidTypeException (imported from the Java API library) if the input for the two objects do not evaluate to the same type
20.8(Generic Class Pair) Complete this assignment as written for a maximum of 10 out of 10 points ; class Pair should have two constructors, one with no parameters and one that takes parameters for the two instance variables; also include a toString method to return a String representation of a Pair object; use your own creativity to design a driver for this assignment but take note that applications which demonstatrate more complexity and originality will get the better grades (Hint: recall that the concept of "pairs" comes from class Map which uses "keys" and "values")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What unethical leadership actions by Jack influenced the decision?

Answered: 1 week ago