There is a homework to create a program that takes in a


There is a homework to create a program that takes in a positive integer number from the user and searches for the number with the highest sum of divisors from the 1 to the user imputed number. The program then has to output the number in this range with the highest sum of divisors and the sum of its divisors in message like this: Number 8 has a maximum sum of divisors 15"

So far created a while loop that prevents the user from proceeding if they dont enter a positive integer but I haven't been able to program the part that selects the number in the range with the highest sum of divisors and the sum of its divisors.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: There is a homework to create a program that takes in a
Reference No:- TGS01469512

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)