Asks the user to enter a positive integer greater than 0


Write a program which:

  1. Asks the user to enter a positive integer greater than 0
  2. Validates that the entry is a positive integer
  3. Outputs the digits in reverse order with a space separating the digits
  4. Outputs the even digits not in reverse order with a space separating the digits (consider zero to be even)
  5. Outputs the odd digits not in reverse order with a space separating the digits
  6. Displays results, in the following format:

SPECIFIC REQUIREMENTS FOR THIS ACTIVITY

  1. Make the ClickMe button the "Accept" button.
  2. (If applicable) Make the text box which captures user input get focus when your application starts.
  3. The Clear button should erase the contents of the text box and any feedback. Focus should be placed on the text box.
  4. The program must have the following four void functions:
    1. reverse // reverse the digits entered by the user and place a between each digit.
    2. even //selects the even digits from the user input, No printing (displaying) results here!
    3. odd // selects the odd digits from the user input, No printing (displaying) results here!
    4. printResults //displays the results. NOTICE the output when the user input does not have any odd digits; also NOTICE the output when the user input does not have any even digits

Solution Preview :

Prepared by a verified Expert
Business Economics: Asks the user to enter a positive integer greater than 0
Reference No:- TGS02196184

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)