CS 1301 Lab 4

100 Points

Attendance is worth 10 points.

(90 points) Team Problem:
For this program you need to submit the source code (.java), including prolog and comments.

Write a program that prompts the user to enter a string and count the number of occurences of the word: fox.

Below are some sample runs of the program:

Sample 1:
Enter a string: The quick brown fox jumped over a fence. 
There was 1 occurence of the word fox. 

Sample 2:
Enter a string: It's not here. 
There were no occurences of the word.

To successfully complete this lab you should: