firstPerson's latest signature problem OR Project Euler, Problem 25 Programming Software Development by dusktreader The essential problem is to determine the index i of the first Fibonacci number Fn to have at least d digits. The specific challenge is to determine the index of the first Fibonacci number to have 1000 digits. Obviously, this problem could be brute forced by stepping through all the Fibonacci numbers and determining the answer. However, this … Re: firstPerson's latest signature problem OR Project Euler, Problem 25 Programming Software Development by mrnutty Close but you still did not need to program for this problem. We have this wonderful formula : [I][U] Fib(n) = round( Phi^n/√5)[/U][/I] We can manipulate the above equation to get the number of digit we are looking for by using logarithm. Fib(n) = log( phi^n / phi(√5) ) Lets denote Fib(n) to be X, the number of digit we are … Re: firstPerson's latest signature problem OR Project Euler, Problem 25 Programming Software Development by dusktreader Ah, yes. In developing the system of equations, I overlooked one simple reduction Given: [icode] Fn( m ) = ceiling( ( log( m ) + log( sqrt(5) ) ) / log( phi ) ) n( d ) = Fn( 10^( d - 1 ) ) [/icode] If we select a base 10 logarithm for the Fn function, and collapse the two functions together we get: [icode]n( d ) = ceiling( ( log_10( 10… Re: Opengl - Moving a shape Programming Software Development by em-kay FirstPerson, thanks alot for the correction. I really appreciate it Re: Basic Classes... Print names Programming Software Development by VernonDozier … char(8))' candidates are: personType::personType(const personType&) 16 - 'firstperson' undeclared 17 - 'lastperson' is undeclared 24 - 'Student1' is undeclared How…; middle.print(); personType last; last.print(); [COLOR="Red"]firstperson[/COLOR].checkfirst("James"); [/code] If you haven't… Passing midnight. Programming Software Development by Urv73 … end_Hour, end_Min, end_Sec; int end_Time, shortest_Time, fastest_Runner; bool firstPerson = true; cout << "Enter start Number:… * 3600) + (start_Min * 60) + start_Sec)); if (end_Time < shortest_Time || firstPerson == true) { shortest_Time = end_Time; fastestRunner = start_Nr; } cout << "… Re: Passing midnight. Programming Software Development by vanalex …, end_Hour, end_Min, end_Sec; int end_Time, shortest_Time, fastest_Runner; bool firstPerson = true; cout << "Enter start Number: …start_Hour * 3600) + (start_Min * 60) + start_Sec)); if (end_Time < shortest_Time || firstPerson == true) { shortest_Time = end_Time; fastestRunner = start_Nr; } cout << "Enter… what doesnt work? plz help guys Programming Software Development by dummies2 …, "I")==0) { Subject.push(str); Subject.push("firstperson"); } else if (strcmp(str,"like")==0 || strcmp…,"see")==0) { Verb.push(str); Verb.push("firstperson"); } else if (strcmp(str,"likes")==0 || strcmp… Re: Best way to define Structure Programming Software Development by hyperion …typedef struct tagPerson { char firstName[50]; char lastName[50]; Person firstPerson; Person secondPerson; }Person;[/CODE] won't compile because Person …typedef struct tagPerson { char firstName[50]; char lastName[50]; tagPerson* firstPerson; tagPerson* secondPerson; }Person;[/CODE] This code piece combines snippet … Re: Coding competition Programming Software Development by iamthwee [QUOTE=firstPerson;1580162]Yea exactly, you don't even have to use … a bit much for a simple Daniweb competition. I like firstPerson's idea about rock paper scissors, but seeing as the… Basic Classes... Print names Programming Software Development by NinjaLink …;); first.print(); personType middle; middle.print(); personType last; last.print(); firstperson.checkfirst("James"); lastperson.checkfirst("Berry"); cout… Re: Basic Classes... Print names Programming Software Development by seanhunt …;); first.print(); personType middle; middle.print(); personType last; last.print(); firstperson.checkfirst("James"); lastperson.checkfirst("Berry"); cout… Re: Basic Classes... Print names Programming Software Development by NinjaLink … char(8))' candidates are: personType::personType(const personType&) 16 - 'firstperson' undeclared 17 - 'lastperson' is undeclared 24 - 'Student1' is undeclared How… Re: Basic Classes... Print names Programming Software Development by NinjaLink … first("Unknown"); firstname.getFirstName(); middlename.getMiddleName(); lastname.getLastName(); // firstperson.checkfirst("James"); // lastperson.checkfirst("Berry"); // cout… Cool New Game Check This out. Must See!!! Programming Software Development by mrnutty … I guess not many bother to read them. Thank you, FirstPerson. Re: Cool New Game Check This out. Must See!!! Programming Software Development by William Hemsworth [QUOTE=firstPerson;943188]Because a title named Cool New Game must See!! … here is a solution to 1^1 + 3^3 .... Programming Software Development by tetron … give the design approaches to solving the problem posed by FirstPerson in his signature: find the last ten digits of x… Re: here is a solution to 1^1 + 3^3 .... Programming Software Development by tetron [QUOTE=firstPerson;1135715]I'm not sure what your answer, but here … Opengl - Moving a shape Programming Software Development by em-kay Hello FirstPerson First of all, Im not an openGL expert but Im … Re: Opengl - Moving a shape Programming Software Development by mrnutty >> Hello FirstPerson Good morning to you to,em-kay. Now just a … Best way to define Structure Programming Software Development by jay1648 … : [CODE]typedef struct { char firstName[50]; char lastName[50]; Person firstPerson; Person secondPerson; }Person;[/CODE] And, obviously this doesn't compile… Facebook Community Center Geeks' Lounge by mrnutty Anyone here have an facebook? I'm ready to reveal myself. Be aware, I'm kinda young, and I have a baby face, as I've been told. Anyways, here is firstPerson's true identity. I know i'm not very important, but you guys are like my online buddies. I feel at home here. Now anyone else has the courage to reveal themselves? Coding competition Programming Software Development by iamthwee Not so long ago firstPerson started what was a series of competition questions for the … Re: Coding competition Programming Software Development by mike_2000_17 … situations a player can face is very limited. And, as firstPerson mentioned, if you write a decision tree for the optimal… Re: Coding competition Programming Software Development by mrnutty [QUOTE]I like firstPerson's idea about rock paper scissors, but seeing as the decisions are totally random and winning is down to pure luck it seems a bit redundant to create an A.I for it.[/QUOTE] I beg to [URL="http://www.nytimes.com/interactive/science/rock-paper-scissors.html"]differ[/URL] Re: Coding competition Programming Software Development by iamthwee …. That is very interesting. I wonder how that flash app firstPerson posted works. I guess it has just monitored hundreds of… Ascii Fun, check it out. Programming Software Development by mrnutty …); } void displayInfo(){ std::cout << "\n\nProcuded by firstPerson(D.Chhetri), use at your own risk!\n"; } int… Re: Ascii Fun, check it out. Programming Software Development by mrnutty …); } void displayInfo(){ std::cout << "\n\nProcuded by firstPerson(D.Chhetri), use at your own risk! Press enter to… Re: Ascii Fun, check it out. Programming Software Development by mrnutty …); } void displayInfo(){ std::cout << "\n\nProcuded by firstPerson(D.Chhetri), use at your own risk! Press enter to… Good News for Me Community Center Geeks' Lounge by mrnutty I'm graduating this december and I got a job offer!!! Will be working for FactSet. I can't believe it. This is so crazy. Thanks everyone for helping me when in need. I'm just so happy :) regards firstPerson