Click here to Skip to main content
15,913,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer for Minute, Hours & days.. Pin
Ravi Bhavnani4-Jul-04 15:00
professionalRavi Bhavnani4-Jul-04 15:00 
GeneralRe: Timer for Minute, Hours & days.. Pin
ThatsAlok4-Jul-04 22:30
ThatsAlok4-Jul-04 22:30 
GeneralRe: Timer for Minute, Hours & days.. Pin
V.5-Jul-04 0:11
professionalV.5-Jul-04 0:11 
Generalpercentile in C Pin
Anonymous4-Jul-04 13:33
Anonymous4-Jul-04 13:33 
GeneralRe: percentile in C Pin
Sumit Kapoor4-Jul-04 13:55
Sumit Kapoor4-Jul-04 13:55 
GeneralRe: percentile in C Pin
Anonymous4-Jul-04 14:20
Anonymous4-Jul-04 14:20 
GeneralRe: percentile in C Pin
Sumit Kapoor4-Jul-04 14:32
Sumit Kapoor4-Jul-04 14:32 
GeneralRe: percentile in C Pin
Antti Keskinen4-Jul-04 22:02
Antti Keskinen4-Jul-04 22:02 
Here's in one hands-on algorithm to calculate the pth percentile in a number set.

1. Sort the data set by value from highest to lowest
2. Discard 100 - p% highest samples from the data set.
For example, if you needed 20th percentile, you'd discard 100 - 20 = 80% from the highest values. If you had 100 values, you would then discard 80 highest ones from them (100 * 0,8 = 80)
3. Now, the greatest value remaining is the pth percentile in the original, unsorted set.

This algorithm is used to calculate the 95th percentile used in billing high-speed connections. I'm unsure whether or not it applies here, but you can give it a try.

Here's the algorithm that Microsoft Excel uses in the QUARTILE function (Quartile's are also known as percentiles).

Hope these will, at least, get you started. If there's nothing else left to try, make your program to utilize Excel in it's calculus. This requires some more thought and Windows knowledge, but is quite a valid approach, as long as this isn't a homework assignment. Using Excel Automation is not allowed in most homeworks.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralIXMLDOMxxx functions Pin
CaesarCZ4-Jul-04 13:16
CaesarCZ4-Jul-04 13:16 
GeneralRe: IXMLDOMxxx functions Pin
Sumit Kapoor4-Jul-04 13:57
Sumit Kapoor4-Jul-04 13:57 
GeneralDesparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm4-Jul-04 12:30
otrcomm4-Jul-04 12:30 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
Anonymous7-Jul-04 14:17
Anonymous7-Jul-04 14:17 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm7-Jul-04 20:17
otrcomm7-Jul-04 20:17 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
SRV8-Jul-04 3:49
SRV8-Jul-04 3:49 
GeneralRe: Desparate: OLE Drag&Drop ClistCtrls Bombs Pin
otrcomm8-Jul-04 10:18
otrcomm8-Jul-04 10:18 
Generalunsigned convert Pin
Scozturk4-Jul-04 8:33
professionalScozturk4-Jul-04 8:33 
GeneralRe: unsigned convert Pin
Michael Dunn4-Jul-04 8:51
sitebuilderMichael Dunn4-Jul-04 8:51 
Questionhow to get dial-up connection status Pin
J.Z4-Jul-04 7:15
J.Z4-Jul-04 7:15 
AnswerRe: how to get dial-up connection status Pin
Scozturk4-Jul-04 8:32
professionalScozturk4-Jul-04 8:32 
GeneralIncludes Pin
Dennis Gourjii4-Jul-04 7:12
Dennis Gourjii4-Jul-04 7:12 
GeneralRe: Includes Pin
J.B.4-Jul-04 7:29
J.B.4-Jul-04 7:29 
GeneralRe: Includes Pin
Dennis Gourjii4-Jul-04 8:44
Dennis Gourjii4-Jul-04 8:44 
GeneralRe: Includes Pin
Ravi Bhavnani4-Jul-04 8:53
professionalRavi Bhavnani4-Jul-04 8:53 
GeneralRe: Includes Pin
Dennis Gourjii5-Jul-04 5:16
Dennis Gourjii5-Jul-04 5:16 
GeneralBOOL to bool conversion Pin
J.B.4-Jul-04 6:39
J.B.4-Jul-04 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.