# Arithmetic Mean

Page 1 of 1

## 1 Replies - 1151 Views - Last Post: 18 December 2010 - 04:01 AM

### #1 atik97

• ???

Reputation: 144
• Posts: 715
• Joined: 16-September 08

# Arithmetic Mean

Posted 20 April 2009 - 07:58 AM

Description: This will find arithmetic mean of grouped data items.
```function mean()
print ("Enter number of class:")
print ("Enter class interval:")
sum_f=0
sum_fx=0
for i=1,n do
print ("For class",i)
print ("Enter lower limit:")
--upper limit
u=l+h
print ("Enter frequency:")
x=(l+u)/2
fx=f*x
sum_fx=sum_fx+fx
sum_f=sum_f+f
end

--mean of the data
mean=sum_fx/sum_f
print("The mean of the given data is",mean)
end
```

Is This A Good Question/Topic? 0

## Replies To: Arithmetic Mean

### #2 deeawe

• New D.I.C Head

Reputation: 0
• Posts: 0
• Joined: 18-December 10

## Re: Arithmetic Mean

Posted 18 December 2010 - 04:01 AM

i don't grab at all. why do expert in programming make it so difficult for beginners like me....i have been to so many websites just to find a program for the simple arithmetic mean with so easy solution