Author Topic: CB RELEASE DATE CALCULATOR!  (Read 2308 times)

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
CB RELEASE DATE CALCULATOR!
« on: February 03, 2004, 04:09:36 am »
Hey, well, I finally did it. I wrote the code to acurately predict the release of CB! (In Java even!)

public ReleaseDateCalculator{
public void main(String args[]){

int Current_Estimate=0;
long delays=0;
int Actual_Release=0;
int number_of_guesses= new Int[20];
int len = number_of_guesses.length;

EasyReader console = new EasyReader();

Current_Estimate=console.readInt;

for(int counter=0; counterdelays=(long)(Math.random * 982563475467);
number_of_guesses[count]=delays;
Actual_Release=number_of_guesses[count];
System.out.println(\"Guess number of days \" + (count+1) +\": \" + Actual_Release);
}
}
}

*note: any guess generated by the Release Calculator does not represent the actual release date. Come on, if I could calculate that, would I be getting minimum wage at a shoe store? I think not. Heck... I don\'t even know if this would compile
« Last Edit: February 03, 2004, 02:36:37 pm by Dameon »

Savion

  • Hydlaa Notable
  • *
  • Posts: 537
    • View Profile
(No subject)
« Reply #1 on: February 03, 2004, 04:11:08 am »
Finaly, Dameon does something useful. :D

-- edit --

/me reads fine print

Damn It!
« Last Edit: February 03, 2004, 04:15:54 am by Savion »

Kixie

  • Veteran
  • *
  • Posts: 1868
  • I chase the moon, liquour, cars and women.
    • View Profile
(No subject)
« Reply #2 on: February 03, 2004, 04:25:28 am »
Ive known the equation for years but it really goes like this

CB release=Circumfrence of Draklars head-Xordans Pride/davis\' I.Q.x moogies time to react to flame

Which comes around to about 6777 days untill cb release. thats august 22nd if you do the math. Go on I dare you to add 6777 days to our callendar and see where ya end up :P. You can even work the equation. Draks head of course is the biggest number in that equation with xordans pride close behind. the 2 smallest are moogies reaction time to flames and davis\' IQ is tiny. That all comes around to

CB release=8500 in.-4500sq. inches/2 quotent *1.8885 seconds=6777 days (august 22, 2022.)

*bows*

*thinks about how many people are going to try this equation and become dumbfounded when they reach august 22, 2022....*

hehe off by 5 days.. silly me
« Last Edit: February 03, 2004, 05:50:19 pm by Kixie »

Kuiper7986

  • Veteran
  • *
  • Posts: 1031
    • View Profile
(No subject)
« Reply #3 on: February 03, 2004, 06:52:53 am »
I\'m 17 now, so that means I\'ll be playing CB when I\'m 36.
My name is NOT pronounced, \"Kway-per,\" it\'s pronounced \"Kye-per.\"

Uyaem

  • Hydlaa Notable
  • *
  • Posts: 747
    • View Profile
(No subject)
« Reply #4 on: February 03, 2004, 12:13:16 pm »
hehehe nice :D
But it won\'t compile unless your EasyReader constructor gets his empty brackets.
Let me take a look in my drawer, i might have some left...
Uh, a big pair.

[size=20]()[/size]

;)
« Last Edit: February 03, 2004, 12:13:59 pm by Uyaem »
The internet is "the terrorists'" most important weapon, they say.
Wrong.
Fear is their most important weapon.
Ours is our freedom.

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
(No subject)
« Reply #5 on: February 03, 2004, 02:36:21 pm »
Ah simple syntax error. Fixed it ;)

Sinon

  • Hydlaa Resident
  • *
  • Posts: 74
    • View Profile
(No subject)
« Reply #6 on: February 03, 2004, 03:35:19 pm »
Quote
Originally posted by whemyfield
Ive known the equation for years but it really goes like this

CB release=Circumfrence of Draklars head-Xordans Pride/davis\' I.Q.x moogies time to react to flame

Which comes around to about 6772 days untill cb release. thats august 22nd if you do the math. Go on I dare you to add 6772 days to our callendar and see where ya end up :P. You can even work the equation. Draks head of course is the biggest number in that equation with xordans pride close behind. the 2 smallest are moogies reaction time to flames and davis\' IQ is tiny. That all comes around to

CB release=8500in-4500/2 quotent *3.386=6772 days (august 22, 2022.)

*bows*

*thinks about how many people are going to try this equation and become dumbfounded when they reach august 22, 2022....*

Actually im thinking of dumbfounding you :P
If you would have included the 29th of february 5 times (every 4th year including this) you would have ended up on the 17th of august 2022 instead. :P Sorry to dissapoint you :D
*bows*

BTW: How did you count this? Dont tell me counted to 6772 in ur callender...
« Last Edit: February 03, 2004, 03:38:43 pm by Sinon »
\"Live to learn, and you\'ll learn to live.\"

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
Well...
« Reply #7 on: February 03, 2004, 04:12:49 pm »
Well, it compiles, but it dusn\'t run :(

Some Exception in thread main error at runtime that I can\'t figure out...

Code: [Select]

public class PSCalculator{
   
    int delays=0;
    int Actual_Release=0;
    int number_of_guesses[]= new int[20];
    int len = number_of_guesses.length;


public void main(String[] args){



System.out.println(\"Enter Current Estimate in Months:  \" );
EasyReader console = new EasyReader();
int Current_Estimate = console.readInt();

for(int counter=0; counter 
    delays=(int)(Math.random() * 98256);
   number_of_guesses[counter]=delays;
 Actual_Release=number_of_guesses[counter];
 System.out.println(\"Guess number of days \"+ (counter+1) +\": \" + Actual_Release);

   }

  }

}

« Last Edit: February 03, 2004, 04:13:58 pm by Dameon »

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #8 on: February 03, 2004, 04:20:29 pm »
trying with BufferedReader, but I get a strange error. hm

eh, my fault...but the results are really discuraging! :D
« Last Edit: February 03, 2004, 04:55:52 pm by lynx_lupo »
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
(No subject)
« Reply #9 on: February 03, 2004, 04:27:54 pm »
*UPDATE*

It works now... stupid ReleaseSettings. The brackets were fine, it wouldn\'t compile if it wasn\'t. Here\'s the code. If you are seriously thinking about running it, you need to compile EasyReader too (I use codewarrior ... stop laughing!):

Code: [Select]

public class PSCalculator {

    public static void main(String args[]) {

        int delays=0;
      int Actual_Release=0;
      int number_of_guesses[]= new int[20];
      int len = number_of_guesses.length;

       
        System.out.println();
       System.out.println();
       System.out.println(\"------------------------------------\" );
      System.out.println(\"        CB Release Calculator       \" );
      System.out.println(\"------------------------------------\" );
      System.out.println();
       System.out.print(\"Enter Current Estimate in Days: \" );
        EasyReader console = new EasyReader();
     int Current_Estimate = console.readInt();
      System.out.println();

       for(int counter=0; counter 
            delays=((int)(Math.random() * (Current_Estimate * 3)));
            number_of_guesses[counter]=delays;
         Actual_Release=number_of_guesses[counter];
         System.out.println(\"Number of days guessed by Dev # \"+ (counter+1) +\": \" + Actual_Release);

    }

       
    }
}
« Last Edit: February 03, 2004, 04:33:27 pm by Dameon »

Kixie

  • Veteran
  • *
  • Posts: 1868
  • I chase the moon, liquour, cars and women.
    • View Profile
(No subject)
« Reply #10 on: February 03, 2004, 05:45:56 pm »
Quote
Originally posted by Sinon
BTW: How did you count this? Dont tell me counted to 6772 in ur callender...


No I used simple mental math. seems im off by 5 days... *edits post to meet requirements...*

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
(No subject)
« Reply #11 on: February 04, 2004, 01:47:20 am »
I figured I would do it in C++ too:

Code: [Select]

//Release Date Calculator
#include
#include
using namespace std;


int main()
{
   int delays=5;
    int Actual_Release=0;
 const int arraysize=10;
     int number_of_guesses[arraysize];
   int estimate = 0;

   cout << endl;
   cout << endl;
   cout << \"------------------------------------\" << endl;
   cout << \"        CB Release Calculator       \" << endl;
   cout << \"------------------------------------\" << endl;
   cout << \"\" << endl;
   cout << \"\" << endl;
   cout << \"Enter Current Estimate in Days: \";
   cin >> estimate;
    cout << \"\" << endl;

   for(int counter=0;counter     delays = estimate * int(20 +(rand()%10));
       number_of_guesses[counter]=delays;
     Actual_Release = number_of_guesses[counter];
       cout <<\"Number of days guessed by Dev # \" << (counter+1) <<\": \" << Actual_Release << endl;
 }  
    cout << endl;
   return 0;                   // Exit the program
}

RussianVodka

  • Hydlaa Notable
  • *
  • Posts: 689
    • View Profile
(No subject)
« Reply #12 on: February 04, 2004, 01:49:49 am »
so, how long till CB is released?



Q: How many Planeshifters does it take to expalin a simple concept to a newb?
A: Six. Five to argue on who\'s explanation is right, and Moogie to lock the thread.

Kixie

  • Veteran
  • *
  • Posts: 1868
  • I chase the moon, liquour, cars and women.
    • View Profile
(No subject)
« Reply #13 on: February 04, 2004, 01:51:38 am »
6776 days! thats only 162624 hours!!!! WEEEEEEE!!!!

Davis

  • Veteran
  • *
  • Posts: 1102
    • View Profile
(No subject)
« Reply #14 on: February 04, 2004, 01:54:27 am »
Here\'s the program everyone seemed to be using before:

#include
int main() {
cout<<\"CB Release date: 2 months from now\";
return 0;
}

 :D