Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Please Help Me on how to make a program which reads a positive non-zero integer as input and checks i it is perfect, deficient or abundant.

    Did you move the tests outside of the loop so that they are done AFTER the sum has been computed?


    Try debugging the code by adding some print statements inside of the loop that print out the...
  2. Re: Please Help Me on how to make a program which reads a positive non-zero integer as input and checks i it is perfect, deficient or abundant.

    Another term that needs definition.

    Should the sum be computed BEFORE the test is done? In other words, do the test outside of the loop that does the summing.
  3. Re: Please Help Me on how to make a program which reads a positive non-zero integer as input and checks i it is perfect, deficient or abundant.

    Can you post definitions for the terms:
    perfect,
    deficient
    abundant.

    They need to be defined before any code can be written to solve for them
  4. Re: Please Help Me on how to make a program which reads a positive non-zero integer as input and checks i it is perfect, deficient or abundant.

    Can you define these terms for a number?
    perfect,
    deficient
    abundant.

    Are those 3 terms mutually exclusive: IE a number can only be one of them and not more than one?
  5. Re: Please Help Me on how to make a program which reads a positive non-zero integer as input and checks i it is perfect, deficient or abundant.

    Please explain. What does the code do now?
    What are the tests for each of the qualities the number should have:
    positive non-zero integer
    perfect,
    deficient
    abundant.

    Please edit your...
Results 1 to 5 of 5