Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2003

Tip: Looking for answers? Try searching our database.

average

Thread view: 
Confused - 30 Nov 2003 17:29 GMT
i am taking a beginners java course and i have written a code to add a
bunch of inputs when entered in dialog boxes, and the code ends when
it hits 0, however, i am also asked to average these numbers and i am
not sure how to do this, anyone have a clue?  please let me know
Alex Hunsley - 30 Nov 2003 17:50 GMT
> i am taking a beginners java course and i have written a code to add a
> bunch of inputs when entered in dialog boxes, and the code ends when
> it hits 0, however, i am also asked to average these numbers and i am
> not sure how to do this, anyone have a clue?  please let me know

The average is the sum of the numbers, divided by the amount of numbers
you added (summed).

E.g. the average of 1, 3, 4, and 4 is (1+3+4+4)/4 = 12/4 = 3


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.