May-10-2018, 08:23 AM
Basically i am working on a project.Let me explain the project.You are gonna write some values as much as you want on a txt file.Then the code will calculate the arithmetic mean of these values.Then we are gonna substract the arithmetic mean from the values we entered one by one.For example if the value we entered is xi we will get xi-arithmetich mean.Then (xi-arithmetich mean)^2 ,(xi-arithemtic mean)^3 ,(xi-arithmetic mean)^4 and finally we will calculate the arithmetic mean of these new values.If you can tell me the basics about reading the values from text and writing a function for unknown number of values.If value number was given for example 10 value i could write it but i dont know how to write for unknown number of values.