Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...



 
HomeCalendarFAQSearchMemberlistUsergroupsLog inRegister
Search
 
 

Display results as :
 
Rechercher Advanced Search
Freelancer.com
Visitors
Live Trafic

Share | 
 

 CS506 Assignment#1 FALL2011

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 216
Join date : 2011-06-17
Location : Rawalpindi

PostSubject: CS506 Assignment#1 FALL2011   Tue Oct 25, 2011 4:00 pm


CS506 Assignment#1 FALL2011

Question:
Write a program that computes the average and standard deviation of the text floating point numbers in a file. Use the following formulas for the average and the standard deviation of N values. The formulas compute the sum, the sum of squares, the average, the average square, the variance, and finally, the standard deviation.
sum = x1 + x2 + x3 + ... + xN-1 + xN

sumSQ = x12 + x22 + x32 + ... + xN-12 + xN2

avg = sum/N

avgSQ = sumSQ/N

var = avgSQ - avg2

sd = var(1/2)

The input file will contain any number text floating point numbers, similar to the following:
10.5
12.9
9.67
12.05
8.23
10.08
10.23
7.7
10.4
11.34

Numbers could be several, or none per line, and negative numbers are perfectly OK.

Back to top Go down
View user profile http://pakitworld.board-directory.net
 
CS506 Assignment#1 FALL2011
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» CTLLS Course
» Chicago Marathon corral assignments?
» UK property law act re assignment of debt.
» A Repeated/Second Notice of Assignment

Permissions in this forum:You cannot reply to topics in this forum
 :: MCS/BCS/MIT/BIT/BSCS :: Assignments-
Jump to: