trickstar34's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
48 (0.02 per day)
Joined:
05-June 09
Profile Views:
1,117
Last Active:
User is offline Feb 27 2014 04:28 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Playstation
Your Car:
Chevrolet
Dream Kudos:
0

Latest Visitors

Icon   trickstar34 has not set their status

Posts I've Made

  1. In Topic: Sum "nth" power with only 1 for loop.

    Posted 17 Feb 2014

    Why am I getting 0 everytime I use 1 as the second parameter?

    public static double sumMultiplePowers(double x, int n) {
      double sum = 0;
      double last = 1.0;
      for (int k = 0; k < n; k++) {
          last = last * x;
          sum += k * last;
      }
    
  2. In Topic: Are web developers and web designers different things?

    Posted 17 Feb 2014

    I do both, as I see my final product as a work of art. I prefer to make my design template and then add content based on what looks good. I prefer to do back end things though. I can do pretty much anything on the logic side (as long as I have resources to give me an idea on how to do things I don't know how to do) but with design, I come up with an idea in my head but I can't make my design exactly match what I'm trying to do, so a lot of the time I find myself cannibalizing code from other web sites to fit the image in my head. Then I like working with the "behind the scenes" server-side things best because that's what truly makes your site unique. So theres a definate difference between Design, front-end development and back-end development because you get a different feeling when doing the 3, just like with Algebra/Calculus and Arithmetic.
  3. In Topic: Sum "nth" power with only 1 for loop.

    Posted 17 Feb 2014

    So would this work? (I don't have a compiler at the moment)

    public double sumMultiplePowers(double x, int n) {
      double sum = 0;
      int last = 1;
      for (int k = 1; k < n; k++) {
          last = last * x;
          sum += k * last;
      }
      return sum;
    }
    
  4. In Topic: Sum "nth" power with only 1 for loop.

    Posted 17 Feb 2014

    I don't follow how that would help because I need to keep track of the sum and power through each iteration, and from what your suggesting it seems like it will skip a few values.
  5. In Topic: Sum "nth" power with only 1 for loop.

    Posted 17 Feb 2014

    Correct, I'm not allowed to use any library methods. I forgot to mention that.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
5
Programming Languages:
Client-side web design, ASP.Net, novice PHP, Java, beginner C++ and C#

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

trickstar34 hasn't added any friends yet.

Comments

trickstar34 has no profile comments yet. Why not say hello?