15 rep for Programmers. menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    15 rep for Programmers.

    Write a program that finds the Determinant (Delta) of the second-degree equation.
    Equation: a*x2 + b*x + C = 0
    Delta = b2 – 4*a*c

    The output should be similar to the following:

    Last edited by Alkhara Majere; 09-19-2007 at 02:07 PM.

    15 rep for Programmers.
  2. #2
    Remahlól's Avatar !!jeULyJf8ld1
    Reputation
    522
    Join Date
    Feb 2007
    Posts
    2,256
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    15 ? Why not 16 rep :P ?

    I thought the maximum rep-power is 15, not 16 O_o.
    Alkhara is now the 16-rep d00d!

    Edit : Sorry Majere =(.
    Last edited by Remahlól; 09-19-2007 at 01:56 PM.
    19/5/2013

  3. #3
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    Fine, 16 rep.
    Keep it on topic.

  4. #4
    Obama's Avatar Legendary
    Reputation
    721
    Join Date
    Dec 2006
    Posts
    2,321
    Thanks G/R
    2/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    Originally Posted by Alkhara Majere View Post
    A simple DOS to calculate the Determinant of the second-degree equation a*x2 + b*x + c = 0
    english plz and mabey i can help. lol. im in like intergrated 3

    Donator 6/2008.
    Contrib 8/2008.Elite 10/2008.Newsteam 11/2008.Legendary 2/2009.

  5. #5
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    Originally Posted by dublecee View Post
    english plz and mabey i can help. lol. im in like intergrated 3
    Edited. See if thats better.

  6. #6
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    determinant is b^2 - 4ac right? I'll have you an exe in a bit, hang on.

  7. #7
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    I don't want a .exe, I need the .cs file itself.

  8. #8
    Obama's Avatar Legendary
    Reputation
    721
    Join Date
    Dec 2006
    Posts
    2,321
    Thanks G/R
    2/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    are u like some sort of genius at math?

    Donator 6/2008.
    Contrib 8/2008.Elite 10/2008.Newsteam 11/2008.Legendary 2/2009.

  9. #9
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    Would imagine something like this.
    Cept this didn't work for me.

    class test
    {
    struct point
    {
    public int x;
    public int y;
    };
    static void Main()
    {
    int deltaX;
    p1.x=2; p1.y=1;
    p2.x=7; p2.y=3;
    Console.WriteLine(Distance(p1,p2));
    }
    static double Distance(point p1,point p2)
    {
    int deltaX, deltaY;
    deltaX=p2.x - p1.x;
    deltaY=p2.y - p1.y;
    return Math.Sqrt(deltaX*deltaX + deltaY*deltaY);
    }
    }
    Last edited by Alkhara Majere; 09-19-2007 at 02:14 PM.

  10. #10
    Alkhara Majere's Avatar Account not activated by Email
    Reputation
    948
    Join Date
    Jul 2006
    Posts
    2,642
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    No one has actually taken the assignment yet.

  11. #11
    Phase228's Avatar Member
    Reputation
    352
    Join Date
    Jan 2007
    Posts
    1,502
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    iam such a nub at this....i might try later tonight
    Hey Piggy



  12. #12
    Marlo's Avatar Banned
    Reputation
    84
    Join Date
    Jul 2006
    Posts
    2,453
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    if i wasnt such a mathtard id probably have a go

  13. #13
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    general pastebin - Chazwazza - post number 703865

    Finished it in under a minute.

    If you want another version with error handling and support for decimals and custom precision levels tell me.

    EDIT: I did it anyway, new version with support for decimals and custom precision.

    general pastebin - Chazwazza - post number 703881

    Also, I noticed you doing some distance stuff, I wrote this last night too. It can find the distance between two points in any number of dimensions (> 2). eg P1(x,y,z,q,p) and P2(x,y,z,q,p)

    It includes full error handling and support for decimals and custom precision levels.

    general pastebin - Chazwazza - post number 703870

    P.S. Both programs are coded in C++

    P.S.S Got a math exam now, I'll be home in about 4 hours.
    Last edited by Cypher; 09-19-2007 at 04:35 PM.

  14. #14
    Loveshock's Avatar Whip it whip it real hard
    Reputation
    373
    Join Date
    Jul 2007
    Posts
    903
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    Originally Posted by Chazwazza View Post
    general pastebin - Chazwazza - post number 703865

    Finished it in under a minute.

    If you want another version with error handling and support for decimals and custom precision levels tell me.

    EDIT: I did it anyway, new version with support for decimals and custom precision.

    general pastebin - Chazwazza - post number 703881

    Also, I noticed you doing some distance stuff, I wrote this last night too. It can find the distance between two points in any number of dimensions (> 2). eg P1(x,y,z,q,p) and P2(x,y,z,q,p)

    It includes full error handling and support for decimals and custom precision levels.

    general pastebin - Chazwazza - post number 703870

    P.S. Both programs are coded in C++

    P.S.S Got a math exam now, I'll be home in about 4 hours.
    Chaz you are insane! :bow:


  15. #15
    gnargnar's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 15 rep for Programmers.

    nerds...teach me!
    https://www.wowserverlisting.net/index.php?a=stats&u=gnargnar
    poopdonkey.servegame.org

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 10
    Last Post: 05-07-2007, 01:16 PM
  2. +rep for something as Burning Valentine(link there)
    By Loteeh in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 01-28-2007, 02:31 PM
  3. i will give rep for nice weapon picthures
    By asolu in forum World of Warcraft General
    Replies: 3
    Last Post: 12-26-2006, 06:46 AM
  4. +rep for warden/domules to...
    By qwert in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 11-21-2006, 08:58 PM
  5. New Theory/Diagram(s) for Programmer's isle!!!
    By myojinyahiko in forum World of Warcraft Guides
    Replies: 6
    Last Post: 10-18-2006, 04:26 PM
All times are GMT -5. The time now is 03:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search