jimblumberg's Profile User Rating: *****

Reputation: 4591 Guru
Group:
Mentors
Active Posts:
15,357 (7.6 per day)
Joined:
25-December 09
Profile Views:
76,522
Last Active:
User is offline Private
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50
Expert In:
C/C++

Latest Visitors

Icon   jimblumberg has not set their status

Posts I've Made

  1. In Topic: Calculate grade average with arrays

    Posted 12 Jun 2015

    Quote

    What should I be adding total to?

    I don't know, how about the grades?

    Quote

    well I was trying to keep track of the amount of positive integers that are inputted so those are the only ones factored into the average.

    Wouldn't it just be better if you reject values less than zero and ask the user to re-enter a valid value?


    Jim
  2. In Topic: SMALL PROBLEM WITH CODE PLEASE HELP

    Posted 12 Jun 2015

    Duplicate topic, closing. Please don't open multiple topics for the same problem.

    Jim
  3. In Topic: Calculate grade average with arrays

    Posted 12 Jun 2015

    Look at this snippet:

       int posItems = 0;
       for (int i = 0; i < count; i++)
       {
          if (grades[i] >= 0)
             total += posItems;
          i++;
       }
    
       if (posItems > 0)
          return total / posItems;
       else
          return -1;
    


    What is posItems being used for? Where do you ever assign a value other than zero to this variable? Since the only value this variable has is zero, what will be the value of total?

    Also you probably should be returning a double from this function and you need to make sure at least one part of your calculations are floating point numbers. And remember there are no fractions in integer math.


    Jim
  4. In Topic: Calculate grade average with arrays

    Posted 12 Jun 2015

    How can you get an average of your grades before you actually input the actual grades?

    Perhaps you need to call your average function after you enter the grades?

    Also please use code tags when posting code.

    :code:


    Jim
  5. In Topic: Help with beginner "if" statements!

    Posted 12 Jun 2015

    Also posted here.

    Jim

My Information

Member Title:
Age:
Age Unknown
Birthday:
December 6
Gender:

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    mireille4U Icon

    30 Apr 2015 - 05:26
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address (mireille4u@live.com) i will give you my picture.here is my mail address i hope we can move from here.above. Mireille
  2. Photo

    modi123_1 Icon

    17 Nov 2014 - 08:11
    I like brocken's comment "I don't know much about coding, but it would be really easy".
    Heh.. I don't know anything about the topic, but I know it is easy.
    Riiiiiiiiiight.
  3. Photo

    brockenglass101 Icon

    22 Oct 2014 - 02:34
    I know that this isn't what this site is for but many people in the pc gaming comunity have been looking for screen magnification program that would zoom in on the center of the screan rather then the cursor (turned on and off with a hotkey). Now, I am not going to lie, I don't know much about coding, but it would be really easy to make program like this one.
    I hope you will find ...
  4. Photo

    KnifeTea Icon

    11 May 2014 - 05:55
    thanks for the help Jim!
  5. Photo

    tarmizi_adam2005 Icon

    04 Dec 2013 - 07:15
    Just stopping by to say Hello Jim. I've learned quite a few things from your posts in the c/c++ forum.
Page 1 of 1