This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: If (list[j] < list[minIndex]) To if (list[j] > list[minIndex]) To check “same” consecutive numbers in the array (must sort first), returns true if there are any duplicates of the same number. Using the program in main function: prints the probability of “numElem” people having “same” similar birthdays Have to multiple by 1.0 first to convert to double form...
View Full Document
This note was uploaded on 01/09/2012 for the course ELECTRICAL 1221 taught by Professor Tan during the Spring '11 term at National University of Singapore.
- Spring '11