This preview shows pages 1–2. Sign up to view the full content.
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
- Spring '11