Using 2 classes and the main class will beMidtermP2Demo
Develop a Java program that lets the user input the elements of an array of ints which has 10 slots and output the following:
sumAll():Sum of the elements in the arrayaverageAll():Average of the elements in the arraymax():Highest value in the arraymin():Lowest value in the arraygcd():Greatest common divisor of the elementslcd():Least common denominator of the elementssumEven():Sum of all even numbers/elementssumOdd():Sum of all odd numbers/elementssumSqrt():Sum of the square roots of the elementssumPrimes(): Sum of all prime numbers/elementsClasses: MidtermP2,MidtermP2Demo
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here