- Main Method, writing homework help

timer Asked: Jul 11th, 2016
account_balance_wallet $35

Question description

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.

  • Tutor Answer

    School: University of Maryland

    flag Report DMCA

    Excellent job

    Similar Questions
    Hot Questions
    Related Tags

    Brown University

    1271 Tutors

    California Institute of Technology

    2131 Tutors

    Carnegie Mellon University

    982 Tutors

    Columbia University

    1256 Tutors

    Dartmouth University

    2113 Tutors

    Emory University

    2279 Tutors

    Harvard University

    599 Tutors

    Massachusetts Institute of Technology

    2319 Tutors

    New York University

    1645 Tutors

    Notre Dam University

    1911 Tutors

    Oklahoma University

    2122 Tutors

    Pennsylvania State University

    932 Tutors

    Princeton University

    1211 Tutors

    Stanford University

    983 Tutors

    University of California

    1282 Tutors

    Oxford University

    123 Tutors

    Yale University

    2325 Tutors