Original Post
Alright...I'm working on a program for a summer assignment, and I need some help with it... I have to write a program that takes a positive integer as an input and displays a message box that includes wether or not the number is perfect, deficient, or abundent. I was given two methods to use... boolean isDivisor (int number, int divisor) and... int divisorSum (int number) A perfect number being a number that the sum of the divisors equals the number. 28 = 1+2+4+7+14 as an example of a perfect number. If the sum of the divisors is less than the number, it is deficient, if it is greater than the number, it is abundant. The part i'm having trouble with is using the methods, and also the math part of the problem. Many thanks in advance, Kyokai ++i got it figured out++ [Edited by - kyokai on September 6, 2006 9:24:56 PM]