Complete and fully test the class Characteristic that Exercise 5 describes. Include the following methods:

• getDescription—returns the description of this characteristic.
• getRating—returns the rating of this characteristic.
• getCompatability(Characteristic otherRating)—returns the compatibility
measure of two matching characteristics, or zero if the descriptions do not match.
• getCompatibilityMeasure(Characteristic otherRating)—a private method that returns a compatibility measure as a double value using the
formula .when both ratings are nonzero; m is zero if either rating is zero. (Recall from Exercise 5 that the constructor sets the rating to zero, indicating that it has not yet been determined.)
• isMatch(Characteristic otherRating)—a private method that returns true if the descriptions match.

This project is a continuation of Exercise 5. It adds methods that allow one to determine a numeric score for compatibility. Test cases are in the main method.


See the code in Characteristic.java.

Computer Science & Information Technology

You might also like to view...

If backlogged incidents are increasing, it indicates that help desk personnel are doing something that's working

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) _______ is a piece of software needed for printer operation and so that the operating system can control the printer

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following statements best describes a Trojan?

A. Malicious software that hides into the lower levels of the operating system and opens a backdoor B. Malicious software that records every key stroke and mouse movement C. Malicious software that disguises itself as a legitimate program D. Malicious software that takes the computer data hostage to extort money

Computer Science & Information Technology

Which of the following is another term for a supply chain?

A. process sequence B. logistics array C. value chain D. delivery funnel E. production group

Computer Science & Information Technology