Is it an armstrong number?

What is the Armstrong Number?

An Armstrong number is a special kind of number in math. It is equal to the sum of it's digits, each raised to the power of the number of digits in the number. For example, there are three digits in the number 153. It is an Armstrong number because 1^3 + 5^3 + 3^3 equals 153.

Armstrong Number Algorithm

To find out if a number is an Armstrong number:

If the sum of the calculated results equals the original number (153), then that number is an Armstrong number.

FYI

In number theory, a narcissistic number in a given number base is a number that is the sum of its own digits each raised to the power of the number of digits. Wikipedia

Armstrong numbers are narcissistic numbers.

Project #1

Create and interactive program that:

  1. Displays a definition of an Armstrong number
  2. Loop
    1. ask the user to enter an integer number
    2. if nothing is entered, exit the loop
    3. verify the users input
    4. calculate the number's value using the algorithm above
    5. is it an Armstrong number?

For simplicity use a menu.

Project #2

Convert the program to use a GUI.

Project #3

Write a program to find (if any) the number of Armstrong number in the first 200 integers in base 2, 8, 10, and 16.

Display the base, the number of numbers found, and each number found.

Display each Armstrong number found in base 2, 8, 10, and 16?