English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The program should calculate the sum of the elements and the floating-point average of the elements.


Sample output:

The list is:
6 12 14 20 27 31 31 34 37 38 56 59 63 66 72 73 73 76 77 79 88 94 95 96 97

The sum is 1414
The average is 56.560000

2007-09-16 21:10:46 · 4 answers · asked by crabbiepattie 1 in Computers & Internet Programming & Design

4 answers

Do your own homework.

2007-09-16 21:19:57 · answer #1 · answered by bestonnet_00 7 · 0 1

create the link list structure
if you are using c here is an example

typedef struct list_tag {
int value;
struct list_tag* next;
} List_type;

you can now use this defined type to create the actual structure. Here is an example

List_type *list;

to access the information in the node
list->value;

to identify the connected node
list->next;

2007-09-17 06:54:15 · answer #2 · answered by jim514526 3 · 0 2

Riiight

2007-09-17 04:13:55 · answer #3 · answered by Anonymous · 0 1

Or else you may contact a C expert to help you code your project assignment. Check websites like http://oktutorial.com/

2007-09-17 09:50:23 · answer #4 · answered by Anonymous · 0 1

fedest.com, questions and answers