Write a program that determines Perfect Numbers. A perfect number is an integer, such that the sum of all the distinct factors in the number, excluding the number itself, add up to the original number. Perfect numbers are not very common. Examples of perfect numbers are: 6 = 1 + 2 + 3 28 = 1 + 2 + 4 + 7 + 14 496 = 1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248 A small starting student file is provided for Lab23. This assignment and all future assignments will have a provided student file. Some files are very small, like the one for this assignment; other student files can be quite large. The main purpose of the student files is to allow students to focus on the computer science concept that is being measured. Make sure that you always start with the provided student file.
Get Free Quote!
319 Experts Online