Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In-class Practice FillAndSortArray Create class FillAndSortArray FillAndSortArray should (all in main): Prompt the user to enter the number of elements desired in array Create a
In-class Practice FillAndSortArray Create class FillAndSortArray FillAndSortArray should (all in main): Prompt the user to enter the number of elements desired in array Create a Random object: Random random new Random(1234); Create an array of doubles of the desired size Fill array with random numbers from [0,100) zero to 99.9999999999... using random.nextDouble0: Sort the array by calling Arrays.sort(arrayName) Print out array elements, one per line, using either printlnO.or printfO with a . . . "%s" format specifier. Example (input in green) MYPROMPT java -jar AutoGrade.jar Fi11AndSortArray Compilation is successful How many elements in array? 12 Array is correct length (12) 1.5899959834469813 6.977557886648151 Input: After you feel your program is correct, further test your 20.387478195313157 33.59524825416939 34.698742873967686 48.653672839922654 45.823338586267855 61.731407199738386 64.6582160298925 85.75884598868335 94.68595742485853 95.13577189193919 Right Answer: 1.5899959834469813 program, by obtaining 6.977557886648151 AutoGrade. jar from this 20.387478195313157 33.59524825416939 assignment. Put it and a copy of 34.698742873967686your FillAndSortArray java in the 48.653672039922654 same directory. Then run it as 45.823330586267055 shown in the example. 61.731487199738386 When your program works correctly, submit it 85.75884598868335
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started