The program is an illustration of conditional statements
<h3>What are conditional statements?</h3>
Conditional statements are statements used to make decisions
<h3>The main program</h3>
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:
brainly.com/question/24833629