Assignment: #DigitPlay Due: 02/03/02019 Points: 3

Specification

Copy the program DigitPlay.java and implement the TBI (To Be Implemented) method named play(Result r).

Your program cannot contain any import statements.

Your play(Result r) method cannot call any other methods.

The output of your program must match the following. {output file}

number: 5
      # of digits: 1
   smallest digit: 5
    largest digit: 5
      digit range: 0
        digit sum: 5
    digit average: 5.0
    digit product: 5

number: 42
      # of digits: 2
   smallest digit: 2
    largest digit: 4
      digit range: 2
        digit sum: 6
    digit average: 3.0
    digit product: 8

number: 127
      # of digits: 3
   smallest digit: 1
    largest digit: 7
      digit range: 6
        digit sum: 10
    digit average: 3.3333333333333335
    digit product: 14

number: 1024
      # of digits: 4
   smallest digit: 0
    largest digit: 4
      digit range: 4
        digit sum: 7
    digit average: 1.75
    digit product: 8 (no multiply by 0)

number: 32767
      # of digits: 5
   smallest digit: 2
    largest digit: 7
      digit range: 5
        digit sum: 25
    digit average: 5.0
    digit product: 1764

number: 2147483647
      # of digits: 10
   smallest digit: 1
    largest digit: 8
      digit range: 7
        digit sum: 46
    digit average: 4.6
    digit product: 903168

number: 9223372036854775807
      # of digits: 19
   smallest digit: 0
    largest digit: 9
      digit range: 9
        digit sum: 88
    digit average: 4.631578947368421
    digit product: 179233689600 (no multiply by 0)