answersLogoWhite

0


Best Answer

int n;

float sum;

typedef struct _node { float value; struct node *next;} node;

struct node *head;

struct node *ptr;

build_list(&head);

for (n=0, sum=0., ptr=head; ptr!=null; sum+=ptr->value, ptr=ptr->next, n++);

if (n>0) printf("n: %d mean: %f\n", n, sum/n); else printf("no elements\n");

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Suppose list is linked list in memory consisting of numerical values write the procedure for finding the mean of the values in the linked list?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the use of numerical analysis and why you have to study?

Numerical analysis has numerous applications in all fields of science and some fields of engineering, and essentially any type of work that requires calculations to give very precise solutions. The point of numerical analysis is to analyse methods that are used to give approximate number solutions to situations where it is unlikely to find the real solution quickly, and to try and improve upon these methods so as to reduce the amount of error generated by computer calculation. It is essential in work that requires precise numbers to get very good approximations with very little error in them, if approximations with just even 1 or 2% error are used in another calculation, and the answer of that calculation used in another, and so on, the errors will build up and you end up with very unreliable numbers. This is why it is a good idea to study numerical anlysis if you intend to go into any area of work requiring precise calculations, so as to be able to identify if there are areas you can improve so as to better your methods in finding solutions and reducing error.


Process of finding errors in software code?

Testing is the process of finding effort in software code.


What is fact finding techniques?

# sampling of existing documentation. # research and site visits. # observation of the work enviroment. # questionaire.


Difference between research discovery and invention?

Research is finding relation between founded items new relation but invent finding out of new points or things.


Why do you think there was a rush of inventions in the late 1800's?

Because inventors focused on finding solutions to practical problems.

Related questions

Numerical method for solving can eqution bisection method?

A root-finding algorithm is a numerical method, or algorithm, for finding a value. Finding a root of f(x) − g(x) = 0 is the same as solving the equation f(x) = g(x).


What does evaluating numerical expressions mean?

It means finding the value of the expression.


What is non numerical data?

Qualitative data is called non numerical e.g hair colore, finding the most common car in a parking lot


What is the procedure for finding out a vehicles gearbox ratios?

cheese


Write a procedure for finding the destiny of a substance?

There is no known procedure for finding the destiny of a substance. However, to find the density simply divide mass(weight) by volume. Density=Mass/Volume


What is the difference between evaluation and simplification of an expression?

Evaluation is the process of finding the numerical value of an expression. For instance, suppose you wanted to know what x^3 was when x = 2. You would plug in 2 for x and get 2^3. This process is evaluation.Simplifying an expression on the other hand doesn't necessarily involve finding any particular value. For instance, suppose you started with the expression (x^3)/(x^2) then recognized that the numerator and denominator share a common factor of x^2 and so rewrote the expression as x. This is simplification because you've put the expression into an equivalent form that may be easier or more useful to deal with, but you have not found a specific value.You can also simplify numerical values -- for instance, 12/20 can be rewritten as 3/5. Often it's necessary to simplify a numerical expression after evaluating an algebraic one.


What has the author Carl Dill written?

Carl Dill has written: 'A computer graphic technique for finding numerical methods for ordinary differential equations' -- subject(s): Computer graphics, Differential equations.., Numerical calculations


What are the Disadvantages of numerical filing system?

A numerical filing system will need a way to look up a patient's name in order to get their chart number. This can take a little longer than simply finding a file by alphabetical order.


How do you used supposed in a sentence?

How do you suppose Mom can plan the surprise party without Dad finding out? If it rains, I suppose we'll reschedule the picnic. What do you suppose caused the roof to cave in?


Five advantages of asexual reproduction?

I suppose number one is you don't need to worry about finding a date.


What is the solution in Midnight Howl?

I don't wanna tell because you are suppose to read sorry!! Finding a mate.


What is the difference between numerical analysis and numerical methods?

Short answer; there isn't any.Long/picky answer; numerical methods tend to look at, surprisingly, numerical methods on solving certain problems such as finding answers to equations (finding fixed points), calculating errors and really just doing calculations using these methods.Numerical analysis on the other hand, does all of this but also looks deeper into why error occurs from these methods and looks into ways of adjusting these methods or developing better ones that reduce the errors given so as to obtain much more accurate approximations to the solution you are trying to find for a given problem.