I\'m writing a code that gives a string and a character of user as input, Then finds number of occurrences of the character in the string. Here is my attempt: