Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mgt506 asingment web designing and developmetn
#1
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.
[FONT=&quot]sum = x1 + x2 + x3 + ... + xN-1 + xN [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]sumSQ = x12 + x22 + x32 + ... + xN-12 + xN2 [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]avg = sum/N[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]avgSQ = sumSQ/N[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]var = avgSQ - avg2[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]sd = var(1/2)[/FONT]
The input file will contain any number text floating point numbers, similar to the following:
[FONT=&quot]10.5[/FONT]
[FONT=&quot]12.9[/FONT]
[FONT=&quot]9.67[/FONT]
[FONT=&quot]12.05[/FONT]
[FONT=&quot]8.23[/FONT]
[FONT=&quot]10.08[/FONT]
[FONT=&quot]10.23[/FONT]
[FONT=&quot]7.7[/FONT]
[FONT=&quot]10.4[/FONT]
[FONT=&quot]11.34[/FONT]
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.
Reply
#2
is ka code tu app thake tarhan sa likh detay. yah tu galat bat hai.
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#3
Rabeel Bro! ess mein code hai kahan jo ghalt hooga. ye tu question(assignment) hai jiss ki wo solution poochh raha hai
Reply
#4
acha mujay tu abhi pata chala...
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#5
Rabeel Bro! apni jaan pe bani hoi hai. please koi hal de do Bro plzzz.
Reply
#6
yah course ki mujay samj nahi ah rahi kay hai kon say wala hai.
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#7
Mazaq Achha ker letay hain aap Sad(((((((((((said Sad(((((((((
Reply
#8
main khud sad hon.... kia kahon ab
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)