Project 18

More functions (50 points)


Sample output 1

Please enter a string : abcamnaa
Please enter a target character : a
The string abcamnaa had 4 occurrances of the character a


Sample output 2

Please enter a string : abcdefg
Please enter a target character : z
The string abcdefg had 0 occurrances of the character z

Sample output 3

Please enter a string : qqqqqq
Please enter a target character : q
The string qqqqqq had 6 occurrances of the character q