We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
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 = avgSQ/N
var = avgSQ - avg2
sd = var(1/2)
The input file will contain any number text floating point numbers, similar to the following:
Numbers could be several, or none per line, and negative numbers are perfectly OK.
Note: All the source code should be written manually. Your code must justify enough for 15 marks.
Lectures Covered: This assignment covers Lecture # 01-09
Your assignment must be uploaded/submitted at or before 31/10/2011.
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
waseem akhtar ur cell no has been deleted. cell no & email are not allowed ..so next be care..
ok dear. thanks for guiding me.
plz upload solution
waeem akhtar plz tell me ur cell number
skype id ni ha abi kdr sy benayin
my dear mobile number not allowed said by tariq sahib.
it is very short program. only via skype id i can help.
ok send it me on my email address \
Solution ho gia hey sara but Out put Box main leyni aati hey , File main ksy output aaye gi
JOptionPane.showMessageDialog(null, "Sum = " + sum);
JOptionPane.showMessageDialog(null, "AVg = " + avg);
JOptionPane.showMessageDialog(null, "Sum of Sq Values = " + sumsq);
JOptionPane.showMessageDialog(null, "Avg of Squared Values = " + avgsq);
JOptionPane.showMessageDialog(null, "variance = " + var);
JOptionPane.showMessageDialog(null, "standard deviation = " + sd);
JOptionPane.showMessageDialog(null, "No of Lines " + counte);
Syed H ali symbol cannot found a raha ha.iska kiya hal ha
Appreciate the effort . Knowledge be shared and not the contacts established. Thanks Tariq Bhai.
yaar out put mn NAN a raha ha????????????
yr koi to assignment shre kr dai............