Question: Help me encode this on APACHE NETBEANS IDE22. Encode it and screen shot it. Ps: PLEASE DONT ENCODE EXTRA SYMBOLS (MAKE IT AS SIMPLE CODING

Help me encode this on APACHE NETBEANS IDE22. Encode it and screen shot it. Ps: PLEASE DONT ENCODE EXTRA SYMBOLS (MAKE IT AS SIMPLE CODING AS POSSIBLE) AND MAKE SURE YOU PUT COMMENTS ( //) on EACH every line of the encode.

Help me encode this on APACHE NETBEANS IDE22.
PART 2 - Math Magic Create a Java application called Lab5_2. In this problem, you will demonstrate a magic trick using math. 1. Think of a 3 digit number in which the digits are decreasing (e.g. 952 or 521 but not 887 or 231). 2 . Now reverse that number (so 852 becomes 258) 3 . Subtract the number you got in step 2 from the number you wrote in step 1. (852 - 258 = 594) 4. Reverse the number you obtained in step 3. (594 becomes 495) 5. Add the number from step 3 to the number in step 4 (594 + 495 = 1089) Let me guess. The number you got was 1089. It turns out this magic trick is due to some properties of numbers which makes it so that any decreasing 3 digit number will have this property. When printing out your (integer) numbers have them formatted so that they are right justified in a field of 4. Example Run: Math Magic Trick Abracadabra hocus pocus, I predict that the last step will result in the number 1089. Enter a 3-digit number in which all digits are decreasing : 852 Your number reversed is : The difference is 594 The difference reversed is 495 The sum of the two differences is MAGICALLY : 1089

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 Programming Questions!