Question: Project Euler problem 13 . I need help . 3:49 Messenger cdn.fbsbx.comm This assignment is adopted from Project Euler Question 13 Requirement - use file

 Project Euler problem 13 . I need help . 3:49 Messenger
cdn.fbsbx.comm This assignment is adopted from Project Euler Question 13 Requirement - Project Euler problem 13 . I need help .

3:49 Messenger cdn.fbsbx.comm This assignment is adopted from Project Euler Question 13 Requirement - use file for the input (nums.txt) - use int array(s) (size: 55) to hold each digit from each num - store the num reversely in the array. For example, the num 123 is stored as 3 (at index 0), 2 (at index 1) and 1 (at index 2) in the array - write a function that performs the addition of numbers This function will be called in the main - write a function that prints out the answer The answer includes two parts: the total summation and the first 10 digits of the summation - comment the code clearly, especially for the number addition mechanism . Grading - compilable and meaningful attemps: 30 points. That is, the code must be compilable while it cannot be just a compilable hello world - functionality: 40 points. (file, string number handling, array and addition mechanism, answer printing) - comment & indentation: 10 points - explanation to lab TA: 20 points. You need to explain the array and addition mechanism to one of the lab TAs, either in the lab time, in their office hours or setup an appointment. - Total score: 30 40 1020100 points. Submission: - due: feb 15, 11:59pnm - please submit through handin program Project Euler Question 13: Work out the first ten digits of the sum of the following one-hundred 50-digit numbers 3:50 cdn.fbsbx.comm 3710728753390210279879799822083759024651013574 0250 4637693767749000971264812489697007805041701826 0538 7432498619952474105947423330951305812372661730 9629 9194221336357416157252243056330181107240615490 8250 2306758820753934617117198031042104751377806324 6676 8926167069662363382013637841838368417873436172 6757 2811287981284997940806548193159262169127588983 2738 427422891743252032192358942287679648767027218 9318 745144573600130643909116721685684458871160315 3276 7038648610584302543993961982891759366568675793 4951 6217645714185656062950215722319658675507932419 3331 6490635246274190492910143244581382266334794475 8178 9257586771833721766196375159057923972824559883 8407 5820356532535939900840263356894883018945862822 7828 8018119938482628201427819413994056758715117009 4390 3539866437282711265382998724078447305319010429 3586 8651550600629586486153207527337195919142051725 5829 7169388870771546649911559348760353292171497005 6938 5437007057682668462462149565007647178729443837 7604 5328265410875682844319119063469403785521777929 5145 3612327252500029607107508256381565671088525835 0721 4587657617241097644733911060721826523687722363 6045 1742370690585186066044820762120981328786073396

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!