Create a menu driven program that has the following menus

  1.  Get number
  2. Determine if Number is Even or Odd

  3. Determine if number is positive or negative

  4. Determine how many digits are in a number

  5. Exit

You must create the following functions

  1.  Display menu: This function should display the menu above and asks the user to make their choice
  2. Get input-This function should get the number to be checked by other functions

  3. isEven-The function to check if the number is even or odd

  4. IsPos-The function to check if the number is positive or not

  5. NumDigit: This function should return the number of digits in the given number

Hint: To determine the number of digits in a number, divide it repeatedly by 10. When the number reaches 0, the number of divisions is the number of digits in the original number

Reverend Jim commented: You have us confused with a homework service. -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.