Reference no: EM132207522
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. Allows user is to repeat/continue the program as many times as he/she wants
7. Keeps a record in a txt file named outDataFile.txt with the history of all numbers entered and the associated results, in the following format: In addition:
8. The program must have the following four void methods:
a. validate //validate user input
b. reverse // output reverse digits to screen and txt file
c. even //output even digits to screen and txt file
d. odd //output odd digits to screen and txt file GENERAL RESTRICTIONS FOR this homework:please follow these instructions when doing this: no loops please redo the homework,
1. No infinite loops, examples include:
a. for(;;)
b. while(1)
c. while(true)
d. do{//code}while(1);
2. No break statements to exit loops i need it by tommarow afternoon, thanks, the homework has to be done in the programming language java, also please do not include while infinite loops please!, please write the code in java and no infinite loops please,esp. while infinite loop.