CT240 lab4


http://geminga.it.nuigalway.ie/~gettrick/courses/CT240/labs/l4.html




Write a program in PYTHON that counts the average number of occurences of the letter 'a' per sentence in a piece of input text. Your program should read the text from a file in.txt and print the results to the screen.

Also in your program, calculate the

number of occurences (again per sentence). (The median of a set of numbers (integers) is some number x such that half of the numbers fall above x and half below: ) Test your program, and write/submit the results, on the file http://geminga.it.nuigalway.ie/~gettrick/courses/CT240/labs/in.txt.

© NUI, Galway