function analyzeSailorUniformPercentage()
totalImages = 100
sailorStyleCount = 0
for each image in imageSet
if isSailorStyle(image)
sailorStyleCount += 1
end if
end for
percentage = (sailorStyleCount / totalImages) * 100
return percentage
end function
function isSailorStyle(image)
if hasCollar(image) and hasNeckerchief(image) and hasPleatedSkirt(image)
return true
else
return false
end if
end function