read and calculate values from output files

Discussion in 'C++' started by tomektomeknyc@yahoo.com, Oct 4, 2005.

  1. Guest

    I did an interactive program to input and store employee paycheck
    information including total net pay into txt file. I can read it from
    txt file but how can i lets say modify it to calculate the average of
    all totals,based on many user inputs to txt file?
    , Oct 4, 2005
    #1
    1. Advertising

  2. wrote:
    > I did an interactive program to input and store employee paycheck
    > information including total net pay into txt file. I can read it from
    > txt file


    That's good.

    > but how can i lets say modify it to calculate the average of
    > all totals,based on many user inputs to txt file?


    Is there a C++ language question I am not seeing here? If you can read
    those values from files, what's stopping you from adding them all and
    then dividing by the number of the values?

    V
    Victor Bazarov, Oct 5, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fjodor Klondyke
    Replies:
    9
    Views:
    16,934
    Toby A Inkster
    Jan 14, 2004
  2. Replies:
    4
    Views:
    936
    M.E.Farmer
    Feb 13, 2005
  3. pratap
    Replies:
    3
    Views:
    442
    James Kanze
    Jul 19, 2007
  4. Replies:
    1
    Views:
    391
    Pavel Lepin
    Feb 4, 2008
  5. mehere
    Replies:
    5
    Views:
    129
    Dr John Stockton
    Feb 28, 2006
Loading...

Share This Page