Answer:
The program in Python is as follows:
string = input("String: ")
chr = input("Character: ")[0]
total_count = string.count(chr)
print(total_count,end=" ")
if total_count > 1:
print(chr+"'s")
else:
print(chr)
Step-by-step explanation:
This gets the string from the user
string = input("String: ")
This gets the character from the user
chr = input("Character: ")[0]
This counts the occurrence of the character in the string
total_count = string.count(chr)
This prints the total count of characters
print(total_count,end=" ")
If the count is greater than 1
if total_count > 1:
Then it prints a plural form
print(chr+"'s")
If otherwise
else:
Then it prints a singular form
print(chr)