Question: etbeans, -un and test your code. Once executed successful ace provided after the question V Question Text There are a number of ways to generate

etbeans, -un and test your code. Once executed successful ace provided after the question V Question Text There are a number of ways to generate random numbers in java, Write a java program with following specifications 1. It should generate 4 random numbers in the range [1-99] 2. Sum of these random numbers should be less than 100 3. This sum should be divisible by 11 1. 4. As you may not get it in one run, use sentinel value type do- while loop to achieve this. 5. Prints the number of iteratiods (times loop has to run) taken by program to print the result Sample run 1 First Number =16 Second Number =12 Third Number =20 Fourth Number =40 Sum = 88 Target found after 8 Iterations Sample run 2 First Number =10 Second Number =32 Third Number = 41 Fourth Number =16 I Il Il III 11 11 Sum 99 Targe found after 13 Iterations e your code for question 1, below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
