Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #99031

Re: Program to create csv file and write into it

From Richard Heathfield <rjh@cpax.org.uk>
Newsgroups comp.lang.c
Subject Re: Program to create csv file and write into it
Date 2016-12-12 10:59 +0000
Organization Fix this later
Message-ID <o2lvr7$3b1$1@dont-email.me> (permalink)
References (6 earlier) <f4a01e00-16e4-4fd5-ab6d-48fdba35ca18@googlegroups.com> <o2lnbt$72q$2@dont-email.me> <b2610625-1d5a-425b-bc94-7fc34b676a4e@googlegroups.com> <o2lp0c$d9b$1@dont-email.me> <a9a4eab1-df60-4502-a067-67c785bfae59@googlegroups.com>

Show all headers | View raw


On 12/12/16 10:52, Alla _ wrote:
> On Monday, December 12, 2016 at 12:02:29 PM UTC+3, Richard Heathfield wrote:
>> On 12/12/16 08:50, Alla _ wrote:
>>> On Monday, December 12, 2016 at 11:34:34 AM UTC+3, Richard Heathfield wrote:
>>>> On 12/12/16 08:13, Alla _ wrote:
>>>>
> <skip>
>> But the most important thing is that you have the spec written down
>> somewhere where you can refer to it and answer questions about it.
>>
>>>>> - write the result to a new csv file
>>>>
>>>> I thought you wanted to export into a mysql database? What happened to
>>>> that idea?
>>> I have addressed this issue yesterday as well. I have thought of using mysql
>>> because I hoped that it will help me to escape csv stage
>>
>> "She swallowed the spider to catch the fly. I don't know why she
>> swallowed the fly."
>>
>> So SQL is out? Pity. Would have been interesting. But okay.
>>
> I am not saying it's totally out of consideration. Let's see.
> Maybe I will do that.
>
>> So you now know exactly what program you're writing. (If I sound
>> sceptical, it's because I /am/ sceptical.)
>>
> Here is the quotation from my post above in this thread:
> First in words (a simplified version):
>
> 1. based on the income statement forecast sales growth
>    1.1. find the average growth rate of the previous 5 years (also simplifying)
>        1.1.1. take income statements for the last 5 years; find Sales row
>        1.1.2. compute sales growth rate for each year =
>        ( amount of sales this year - amount  of sales previous year ) / amount of sales previous year
>        1.1.3. find the average of all results in 1.1.2

Which average are you going to use? Arithmetic mean? Geometric mean? 
Harmonic mean? Median? Mode? I'm guessing you intend to use the 
arithmetic mean, but it's as well to specify these things precisely. 
Note that the arithmetic mean is probably about the worst measure you 
could choose here!

Anyway, it seems that you have gone to some trouble to specify the 
problem. That's good. Thank you for posting your specification -- I will 
save it for future reference.

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-10 09:30 -0800
  Re: Program to create csv file and write into it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-10 20:42 +0000
    Re: Program to create csv file and write into it Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-12-10 15:56 -0500
      Re: Program to create csv file and write into it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-10 21:08 +0000
    Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-10 23:48 -0800
      Re: Program to create csv file and write into it Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-11 00:01 -0800
      Re: Program to create csv file and write into it Keith Thompson <kst-u@mib.org> - 2016-12-11 01:12 -0800
      Re: Program to create csv file and write into it Keith Thompson <kst-u@mib.org> - 2016-12-11 01:27 -0800
        Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-11 04:50 -0800
          Re: Program to create csv file and write into it Barry Schwarz <schwarzb@dqel.com> - 2016-12-11 09:42 -0800
            Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 00:13 -0800
              Re: Program to create csv file and write into it Richard Heathfield <rjh@cpax.org.uk> - 2016-12-12 08:34 +0000
                Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 00:50 -0800
                Re: Program to create csv file and write into it Richard Heathfield <rjh@cpax.org.uk> - 2016-12-12 09:02 +0000
                Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 02:52 -0800
                Re: Program to create csv file and write into it Richard Heathfield <rjh@cpax.org.uk> - 2016-12-12 10:59 +0000
                Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 03:23 -0800
          Re: Program to create csv file and write into it mx2927 <mx2927@gmail.com> - 2016-12-11 20:44 +0100
            Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-11 23:57 -0800
              Re: Program to create csv file and write into it Barry Schwarz <schwarzb@dqel.com> - 2016-12-12 01:06 -0800
      Re: Program to create csv file and write into it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-11 11:39 +0000
        Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-11 04:47 -0800
          Re: Program to create csv file and write into it Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-11 14:43 +0000
            Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 00:56 -0800
      Re: Program to create csv file and write into it Barry Schwarz <schwarzb@dqel.com> - 2016-12-11 09:38 -0800
        Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 00:44 -0800
          Re: Program to create csv file and write into it Richard Heathfield <rjh@cpax.org.uk> - 2016-12-12 08:48 +0000
          Re: Program to create csv file and write into it Barry Schwarz <schwarzb@dqel.com> - 2016-12-12 01:19 -0800
            Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-12 02:30 -0800
            Re: Program to create csv file and write into it Manfred <noname@invalid.add> - 2016-12-12 15:10 +0100
              Re: Program to create csv file and write into it Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-12 12:35 -0800
  Re: Program to create csv file and write into it Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-10 14:29 -0800
    Re: Program to create csv file and write into it Alla _ <modelling.data@gmail.com> - 2016-12-10 23:57 -0800
      Re: Program to create csv file and write into it Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-11 00:33 -0800
        Re: Program to create csv file and write into it Keith Thompson <kst-u@mib.org> - 2016-12-11 01:19 -0800

csiph-web