Question: write in java using netbeans Write a java program that reads 2 4-digit integers. The program should decide if any is a multiple of 10

write in java using netbeans

write in java using netbeans Write a java program that reads 2

Write a java program that reads 2 4-digit integers. The program should decide if any is a multiple of 10 and print out the sum of all digits in the greatest one. The program also decides and prints if such sum is even or odd. If sum is even, then the program prints out Great my friend". Otherwise, the program will display on the screen "The End is yet to come". N.B. The program will print an error message and will keep asking the user to re-enter the integer until it satisfies the criteria. The program should allow the user to repeat as many as he/she wants Output Sample Run Enter an integer (1000~9999): 162 Wrong Input... Reenter an integer between 1000 and 9999: 172 Wrong Input. Reenter an integer between 1000 and 9999: 1672 Enter an integer (100079999): 4589 None is a multiple of 10 The sum of all digits in 4589 is 26 26 is even Great my friend Do you want to repeat? (y) Y Do you want to repeat? [y) y Enter an integer (1000-9999): 9672 Enter an integer (1000-9999): 5580 5580 is a multiple of 10 The sum of all digits in 9673 is 25 25 is odd The End is yet to come Do you want to repeat? (y) N Goodbye

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!