Question: Write a Java program that does the following: 1. Generates 5 random numbers between 1 and 20 (each random number needs to be shown in
Write a Java program that does the following: 1. Generates 5 random numbers between 1 and 20 (each random number needs to be shown in the output). 2. Sum the 5 random numbers and display the sum. 3. Determines if the sum is a prime number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
