Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 5 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 22 Sep 2017 My Price 10.00

Fibonacci sequence

I am stuck on phase 4. Help me please!!
It looks like Fibonacci sequence, recursive function
I know that has "%d, %d" means 2 numbers.
I think the first number 2, but not sure about second number??
I think func 4 should return value of 6 for second number, in order for bomb in phase 4 to not explode at the end.

Dump of assembler code for function phase_4:
0x08048dd5 : push %ebp
0x08048dd6 : mov %esp,%ebp
0x08048dd8 : sub $0x28,%esp
0x08048ddb : lea -0x8(%ebp),%eax
0x08048dde : mov %eax,0xc(%esp)
0x08048de2 : lea -0x4(%ebp),%eax
0x08048de5 : mov %eax,0x8(%esp)
0x08048de9 : movl $0x804a40a,0x4(%esp)
0x08048df1 : mov 0x8(%ebp),%eax
0x08048df4 : mov %eax,(%esp)
0x08048df7 : call 0x8048884
0x08048dfc : cmp $0x2,%eax
0x08048dff : jne 0x8048e0d
0x08048e01 : mov -0x4(%ebp),%eax
0x08048e04 : test %eax,%eax
0x08048e06 : js 0x8048e0d
0x08048e08 : cmp $0xe,%eax
0x08048e0b : jle 0x8048e15
0x08048e0d : lea 0x0(%esi),%esi
0x08048e10 : call 0x80491e5
0x08048e15 : movl $0xe,0x8(%esp)
0x08048e1d : movl $0x0,0x4(%esp)
---Type to continue, or q to quit---
0x08048e25 : mov -0x4(%ebp),%eax
0x08048e28 : mov %eax,(%esp)
0x08048e2b : call 0x8048b00
0x08048e30 : cmp $0x6,%eax
0x08048e33 : jne 0x8048e3b
0x08048e35 : cmpl $0x6,-0x8(%ebp)
0x08048e39 : je 0x8048e45
0x08048e3b : nop
0x08048e3c : lea 0x0(%esi,%eiz,1),%esi
0x08048e40 : call 0x80491e5
0x08048e45 : leave
0x08048e46 : ret
End of assembler dump.


0x8048b00 push %ebp ¦
>¦0x8048b01 mov %esp,%ebp ¦
¦0x8048b03 sub $0x14,%esp ¦
¦0x8048b06 mov %ebx,-0x8(%ebp) ¦
¦0x8048b09 mov %esi,-0x4(%ebp) ¦
¦0x8048b0c mov 0x8(%ebp),%ebx ¦
¦0x8048b0f mov 0xc(%ebp),%ecx ¦
¦0x8048b12 mov 0x10(%ebp),%esi ¦
¦0x8048b15 mov %esi,%edx ¦
¦0x8048b17 sub %ecx,%edx ¦
¦0x8048b19 mov %edx,%eax ¦
¦0x8048b1b shr $0x1f,%eax ¦
¦0x8048b1e add %edx,%eax ¦
¦0x8048b20 sar %eax ¦
¦0x8048b22 add %ecx,%eax ¦
¦0x8048b24 cmp %ebx,%eax ¦
¦0x8048b26 jle 0x8048b40 ¦
¦0x8048b28 sub $0x1,%eax ¦
¦0x8048b2b mov %eax,0x8(%esp) ¦
¦0x8048b2f mov %ecx,0x4(%esp) ¦
¦0x8048b33 mov %ebx,(%esp) ¦
¦0x8048b36 call 0x8048b00 ¦
¦0x8048b3b lea (%eax,%eax,1),%edx ¦
¦0x8048b3e jmp 0x8048b60 ¦
¦0x8048b40 mov $0x0,%edx ¦
¦0x8048b45 cmp %ebx,%eax ¦
¦0x8048b47 jge 0x8048b60
¦0x8048b49 mov %esi,0x8(%esp) ¦
¦0x8048b4d add $0x1,%eax ¦
¦0x8048b50 mov %eax,0x4(%esp) ¦
¦0x8048b54 mov %ebx,(%esp) ¦
¦0x8048b57 call 0x8048b00 ¦
¦0x8048b5c lea 0x1(%eax,%eax,1),%edx ¦
¦0x8048b60 mov %edx,%eax ¦
¦0x8048b62 mov -0x8(%ebp),%ebx ¦
¦0x8048b65 mov -0x4(%ebp),%esi ¦
¦0x8048b68 mov %ebp,%esp ¦
¦0x8048b6a pop %ebp ¦
¦0x8048b6b ret

Answers

(5)
Status NEW Posted 22 Sep 2017 09:09 PM My Price 10.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)