java高中作业代写 java留学生高中代写
DAILY ASSIGNMENT- APRIL 14th HONORS PROGRAMMING
In today’s daily assignment, you are going to finish Eleven Rules. The included test data file should be used to create the final version of your program.
In order to finish your program, you must use the code created from the last iteration. You will modify the code to produce the complete sequence that determines whether or not the given input number is divisible by eleven. This means that you will need to add iteration to the step that processes the number by each digit.
The input test data file contains the same values as shown on the next page. The output for each number tested should be the same as what is shown. You must show the process sequence in your output format.
When you have finished modifying your document, pack it in a JAR file, TEST YOUR JAR FILE FOR CORRECTNESS, then upload it to the assignment area in the classroom. With this being a programming assignment, you have until 6 PM to turn in your result.
YOU DO NOT HAVE TO OUTPUT THE RESULT IN TWO-COLUMN FORMAT. THIS IS
DISPLAYED THIS WAY ONLY TO GET IT TO FIT ON ONE PAGE IN THIS DOCUMENT. YOUR RESULTS MAY BE OUTPUT SEQUENTIALLY.
ELEVEN RULES
OUTPUT RESULTS
7643268910 764326891 76432688 7643260 764326 76426 7636
757 68
6123590234 612359019 61235892 6123587 612351 61234 6119
602 58
764326891-0 76432689-1 7643268-8 764326-0 76432-6 7642-6 763-6
75-7 NO
612359023-4 61235901-9 6123589-2 612358-7 61235-1 6123-4 611-9
60-2 NO
14938271470331 1493827147032 149382714701 14938271469 1493827137 149382706 14938264 1493822 149380
14938 1485 143 11
1493827147033-1 149382714703-2 14938271470-1 1493827146-9 149382713-7 14938270-6 1493826-4 149382-2 14938-0
1493-8 148-5 14-3 YES
1358024679121 135802467912-1 135802467911 13580246791-1
56342875481 5634287547 563428747 56342867 5634279 563418 56333
5630 563 53
6543783 654375 65432 6541 653
62
6754328902 675432888 67543280 6754328 675424 67538 6745
669 57
5634287548-1 563428754-7 56342874-7 5634286-7 563427-9 56341-8 5633-3 563-0
56-3 YES
654378-3 65437-5 6543-2 654-1 65-3 YES
675432890-2 67543288-8 6754328-0 675432-8 67542-4 6753-8 674-5
66-9 NO
13580246790 1358024679 135802458 13580237 1358016 135795 13574
1353 132 11
6380 638 55 TEST DATA:
7245639 14938271470331 5634287549112 6543783 6754328902
TEST OUTPUT:
7245639 724554 72451 7244 720
72
1358024679-0 135802467-9 13580245-8 1358023-7 135801-6 13579-5 1357-4 135-3
13-2 YES
638-0 63-8 YES
724563-9 72455-4 7245-1 724-4 72-0
NO
5634287549112 563428754911-2 563428754909 56342875490-9
