We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

 

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 = avgSQ/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.

 

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

Deadline

Your assignment must be uploaded/submitted at or before 31/10/2011.          

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3864

.

+ 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)

Attachments:

Replies to This Discussion

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

plzzzzzzzzzzzzzzzzzz

 

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 \

 

Aslam-o-A

Solution ho gia hey sara but Out put Box main leyni aati hey , File main ksy output aaye gi

 

avg=sum/count;

avgsq=sumsq/count;

avgx2=avg*avg;

var=avgsq-avgx2;

sd=Math.sqrt(var);

 

 

 

}

 

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............

RSS

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS405 Database Programming using Oracle 11i
4 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS405 Database Programming using Oracle 11i
5 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS405 Database Programming using Oracle 11i
5 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS405 Database Programming using Oracle 11i
6 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group CS405 Database Programming using Oracle 11i
7 minutes ago
Ayaat replied to Kashif Nadeem - MSCS's discussion All in one MCQs of Midterm ENG201 in the group ENG201 Business and Technical English Writing
7 minutes ago
Profile IconAyaat and Mati Ullah joined + M.Tariq Malik's group
7 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS405 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019
7 minutes ago
+ M.Tariq Malik added a discussion to the group CS405 Database Programming using Oracle 11i
8 minutes ago
Ayaat replied to + ℱȺℋ££M ᏕȺQǐβ's discussion 16 Eng 301 MiD Term Solved Papers with Reference + Solved Short Questions in the group ENG301 Business Communication
9 minutes ago
Ayaat replied to + ℱȺℋ££M ᏕȺQǐβ's discussion 16 Eng 301 MiD Term Solved Papers with Reference + Solved Short Questions in the group ENG301 Business Communication
9 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM304 Mass Media in Pakistan Assignment No 01 Fall 2019 Solution & Discussion in the group MCM304 Mass Media in Pakistan
11 minutes ago
Ayaat replied to + ℱȺℋ££M ᏕȺQǐβ's discussion 16 Eng 301 MiD Term Solved Papers with Reference + Solved Short Questions in the group ENG301 Business Communication
11 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MGT611 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group MGT611 Business & Labor Law
12 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PHY301 Circuit Theory Assignment No 01 Fall 2019 Solution & Discussion in the group PHY301 Circuit Theory
14 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PHY301 Circuit Theory Assignment No 01 Fall 2019 Solution & Discussion in the group PHY301 Circuit Theory
18 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PHY301 Circuit Theory Assignment No 01 Fall 2019 Solution & Discussion in the group PHY301 Circuit Theory
19 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA631 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group STA631 Inferential Statistics
20 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA631 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group STA631 Inferential Statistics
21 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA631 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group STA631 Inferential Statistics
22 minutes ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service