akosiraff

Download PerfectNumber

Feb 14th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/perfectnumber-2/
  3. Modify the previous Chapter 4 assignment to define and call a method entitled perfectNumber.
  4. The method should:
  5. • take in one int as an argument
  6. • return a boolean – true if the number is a perfect number, false if the number is not a perfect number
  7. • be documented with proper javadoc notation
  8. The main method of the program should call the perfectNumber method to determine if the number entered by the user if a perfect number.
  9. This application should still have all the functions defined in the Chapter 4 assignment (prompting the user until the user wants to stop playing and only allowing positive integers for numbers).
  10. Remember to:
  11. • put your name, COP 2800, Chapter 5 Assignment, and date in a comment block at the top of your file
  12. • comment your code
  13. • format your code so it is readable (proper indentation, white space, blank lines, etc.).
  14. Submit your .java file here when you have completed the assignment. Late assignments will not be accepted without an approved excuse.
  15. Download: https://solutionzip.com/downloads/perfectnumber-2/
Add Comment
Please, Sign In to add comment