The program is an illustration of conditional statements
Conditional statements are statements used to make decisions
The program written in Python, where comments are used to explain each action is as follows:
#This gets the input for the sentence
sentence = input("Word: ")
#This counts the number of characters
countChar = len(sentence)
#The following if conditions print the required output from the test conditions
if(sentence[-1] == "?" and countChar%2 == 0):
print("Yes")
elif(sentence[-1] == "?" and countChar%2 == 1):
print("No")
elif(sentence[-1] == "!"):
print("Wow")
else:
print("Nice",sentence)
Read more about conditional statements at:
https://brainly.com/question/24833629