Hi, I am programming in python but I kind of ran out of ideas. Could you humans help me?
This is ether going to become the most viewed post on the forum or end up like my last help request
criteria:

  1. No AI requests
    • I get enough AI requests at home. If i get one more AI request I am going to set the world on fire.
  2. No chats
    • Shouldn't have to say this but I know there will be that one idiot
  3. No worms, trojan horses, or viruses.
    • Ok, you all arn't that stupid but I have seen the people on this forum.

Thanks!
- Fred Lightning "Sparky" Alexander V

Awards

  • â’¸ 1 from SquirrelGuy-5
    Comment: Lol, set the world on fire hehe… Yeah, u could create an explosion with uranium-235 so it’s NUCLEAR POWER!! HAHAHAHAHA

A puzzle game where the answer is to press a keyboard button, but there's a puzzle that solves nothing.

How about something simple. Create a program which solves for all the zeros of a quadratic polynomial given the coeffecients. If you want a WAY harder challenge, try writing one for an n-degree polynomial.

    Captain_Jack_Sparrow Try something like this:

    print("enter the coeffecients of a polynomial of the form ax^2 + bx + c")
    a = float(input("coeffecient a: "))
    b = float(input("coeffecient b: "))
    c = float(input("coeffecient c: "))
    # Do math
    # Print zeros of the polynomial

    Here is an example:
    2x2+16x+30
    in this case, you can find the zeros by doing the following:
    2x2-16x+30 = 0
    2(x2-8x+15) = 0
    2(x-5)(x-3) = 0
    x-5 = 0
    x = 5
    x-3 = 0
    x = 3

    Therefore, if I input 2, 16, 30 as a, b, c respectively into your program it should print 5 & 3

      22 days later
      9 days later

      Chat