LiFiUnit5 Java Main Method Writing Homework Help

Get input for maximum random number into a String variable.

  • Use the Integer wrapper class to parse the integer out of the string and store in an integer variable.
  • Get input for number of rounds into an integer.
  • Create a Header and Data format string to output results as shown in the sample at the bottom.
  • Utilizing a for loop, output results meeting following criteria:
    • One line should be output for each round.
    • Each line should contain:
      • Round Number.
      • Random number chosen.
      • Current Maximum of all random numbers so far.
        • Utilize Math class to determine current Max
      • Current Minimum of all random numbers so far.
        • Utilize Math class to determine current Min
      • Current Total of all numbers added together.
        • Total should be calculate using a compound operator.
      • Current average of all random numbers so far.
        • Average should be shown with 2 decimal places.
  • Output “End Run…” after all lines have been output.
  • No matter what kind of paper writing service you need, we’ll get it written. Place Your Order Now!
    × How can I help you?