Answer:
In Python:
sttr = input("String: ")
ch = input("Character: ")
count = sttr.count(ch)
print(str(count)+" "+ch, end = '')
if count>1 or count==0:
print("'s")
Step-by-step explanation:
This prompts the user for string
sttr = input("String: ")
This prompts the user for character
ch = input("Character: ")
This counts the number of occurrence
count = sttr.count(ch)
This prints the number of occurrence of the character
print(str(count)+" "+ch, end = '')
This checks if the number of occurrence is 0 or greater than 1.
if count>1 or count==0:
If yes, it prints 's
print("'s")