Problem calculating average with "for"...

This is a discussion on Problem calculating average with "for"... within the C++ Programming forums, part of the General Programming Boards category; hello, i have a problem with my program. It required to read 10 numbers from a file(text document), and calculating ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    56

    Unhappy Problem calculating average with "for"...

    hello, i have a problem with my program.
    It required to read 10 numbers from a file(text document), and calculating the average. Then, find how many are above, equal or below the average.

    here is my program.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    56

    and the text document...

    and here is my text document, that the program required to open with.
    Attached Files Attached Files

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>hello, i have a problem with my program.
    You can start by telling us what your problem is. Please be specific.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    Damn it Hammer, I was preparing a witty and wordy post saying exactly that, and you beat me to it. (Slow at 2 am).
    Demonographic rhinology is not the only possible outcome, but why take the chance

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-24-2007, 12:05 AM
  2. Debug Error Really Quick Question
    By GCNDoug in forum C Programming
    Replies: 1
    Last Post: 04-23-2007, 01:05 PM
  3. Newbie calculating problem
    By Andy123 in forum C Programming
    Replies: 5
    Last Post: 02-09-2006, 12:57 PM
  4. Replies: 1
    Last Post: 12-07-2005, 10:23 PM
  5. One More Homework Problem
    By joxerjen in forum C++ Programming
    Replies: 5
    Last Post: 10-12-2005, 05:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21