A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Calculating the averageA very simple piece of code for the beginner in C++. It demonstrates how to calculate the average of some numbers. Uses the ‘for’ loop. |
On Saturday, March 20th 2004 at 11:48 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 3.9 with 8 votes) |
||
We output the number of items the user choosed to enter, the sum of them and finally we divide the sum of the numbers entered by the user to the number of items. |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsI tried the code in an excel worksheet but I keep getting a syntax error. What gives?
This is the worst thing i've ever seen i mean u didnt explain anything come on i want to know what the commands mean good lord!
I said this script is for the C++ beginner, but not the 'total beginner'. You should have a little knowledge about C++ loops and other basic syntax.
Anyway, I updated the tutorial and explained the code.
I think it was straight forward. I am a newby and was trying to write a code that calculates and print the average rainfall over a period of days terminated by 9999.
all programs run, i just hope to keep on relying on you as a source for code trouble shooting. keep up the good work
I know this sounds dumb, but hey, I'm a blonde! Just kidding, what I was going to say is when you calculate the mean or average of a set of numbers, do you add them and then divide. I'm having one of those blank mided blonde moments.
You add them and then divide them by their number. For example you have 3 numbers: 6, 7 and 8. Add them and you get 21. Divide 21 by 3 (we had three numbers) and you get the average: 7.
If you had 4 numbers, we would divide by 4 instead.
I'm writing a program that requires inputting only 25 numbers that can be anywhere from 0-100. Now, how would you write a code to calculate the mean and standard deviation for this?
Lost
please i will need some help on how to write a code in C to calculate the mean of numbers arranged in colunms,accessing these numbers from a text file. thanks
It's FANTASTIC!!! You did a great job! Thank you for your help... You have a good logic...=.)
Using do-while loop, make a program that continuously ask for the numbers
nd ko maintindihan ang gawa mo
gawa uli kayo ng bago
ang layo ng sagot nyo!!!!! pde
Related Tutorials
Related Source Code
C++ Job Search