Solved

Median, Mode, and smallest value in a listbox

Posted on 2006-11-03
1
334 Views
Last Modified: 2010-04-23
I am trying to calculate the median, and mode using a listbox that contains salary values. The are referenced to seperate Subs on the form. One calculates the mean of the listbox (lstsalaries) and the second calculates the mode(of lstSalaries) and the last one calculates the smallest salary in the list. I know that a sorted list will help but, I have absolutely no idea what the syntax of the code will be. I am new to VB and help would be greatly appreciated.
Thank you,
Volunteer2
0
Comment
Question by:volunteer2
1 Comment
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 500 total points
ID: 17872055
I Googled "VB Mean Median Mode" and found in the second slot: http://abstractvb.com/code.asp?A=1031
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB.NET Server side Javascript 8 51
Bind textbox to custom property in My.Settings 2 34
Hide Tab Page 3 18
Showdialog 8 20
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now