computer science


Directions Points The file must be called Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter. Only submit the .java file needed to make the program run. Do not submit the .class file or any other file. 5% Style Components Include properly formatted prologue, comments, indenting, and other style elements as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. 5% - Main Method 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. Mimic the output in the sample below exactly. Numbers will change due to random and selection but format will be the same. 90% NOTE: Complete your activity and submit it by clicking “Submit Assignment” Total Percentage 100% Sample Max Random Number and Number of Rounds will vary based on input: Below are 3 different random examples based on the input given. Your output will vary but the format will be the same.

Instruction Files

Related Questions in computer science category

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.