Programming exercise for beginners
Hi guys! want to implement but don't know where to start. here is the task:
"Write a program that takes a one-line sentence as input and then outputs the following response: If the sentence ends with the question mark ‘?’ and the input contains an even number of characters, then output the word “Yes”. If the sentence ends with the question mark ‘?’ and the input contains an odd number of characters, then output the word “No”.If the sentence ends with an exclamation mark ‘!’, then output the word “Wow”. In all other cases, your program will output the string “You always say” followed by the input string enclosed in quotes. Your output should all be on one line. Be sure to note that in the last case, your output must include quotation marks around the echoed input string. In all other cases, there no quotes in the output. Your program should have a loop that allows the user to repeat this until the user indicates that she/he wants to end the program. Your program does not have to check the input to see that the user entered a legitimate sentence."
This might be easy for you guys, I am just beginner, you don't have to write whole code, you can just guide me. thanks.