subject

The Extremes class represents the range of Integer values. Fill in the extremes methods. In the constructor, set min and max to the minimum and maximum value of Integer. Use Integer. MIN_VALUE and Integer .MAX_VALUE. Also fill in the mindiff and maxDiff methods to return the difference between the users guess and the actual max/min values of Integer Main In main, use the comments as a guide to ask the user to guess the maximum and minimum values. Compute the difference between the guess and the values, then print it out. Be aware that if you choose a number too big or too small, it will cause an error since the number cannot be stored. The results in main should look something like this: Guess the maximum Integer value: 543214 You were off by 2146940433 Guess the minimum Integer value: 2145678321 You were off by 1805327 e Sul import java. util. Scanner; import java. lang. *; public class ExtremeMain { public static void main(String[] args) { // Create a Scanner object // Create an Extremes object I Ask the user to guess the maximum value of an Integer 1/ Compute and display the difference 11 between the max and the guess ៩ ទី ៨ ៩ ថ ន យ ន ផ 5 6 GO TO US, 1 Ask the user to guess the minimum value of an Integer Il Compute and display the difference 77 between the min and the guess } Nm 4 1 public class Extremes 2- { 3 Integer min; Integer max; 5 V/ Constructor public Extremes () 8 { 9 // Set min and max values 10 3 NO N 12 B 14 15 16 // Returns the difference 1 max number public Integer maxDiff(Integer number) { } 18 19 20 21 22 23 24 25 26 27 // Returns the difference 1 min number public Integer minDiff(Integer number) { I } Y 28 // Returns a String representation 17 in the form 1/ [min, max] public String toString() { return "[" + min + + max + "]"; } 19 29 30- 31 32 33 34 8

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
You know the right answer?
The Extremes class represents the range of Integer values. Fill in the extremes methods. In the cons...
Questions
question
Chemistry, 04.11.2020 08:40
question
Mathematics, 04.11.2020 08:40
question
Engineering, 04.11.2020 08:40
question
Computers and Technology, 04.11.2020 08:40
question
Chemistry, 04.11.2020 08:40
Questions on the website: 13722367