programming assignments for probability and statistics class