Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...
Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeSearchLatest imagesLog inRegister
Search
 
 

Display results as :
 
Rechercher Advanced Search
Freelancer.com
Visitors
Live Trafic
CS506 Assignment#1 FALL2011 Pageviews=1

 

 CS506 Assignment#1 FALL2011

Go down 
AuthorMessage
Admin
Admin



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

CS506 Assignment#1 FALL2011 Empty
PostSubject: CS506 Assignment#1 FALL2011   CS506 Assignment#1 FALL2011 EmptyTue 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
https://pakitworld.board-directory.net
 
CS506 Assignment#1 FALL2011
Back to top 
Page 1 of 1
 Similar topics
-
» CS605 Assignment#1 FALL2011
» GDB CS506
» CS506 Final Term Paper
» CS506 Quiz Web Design and Development
» CS506 Quiz Web Design and Development

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