This week we are going to be building a basic word game. This will require an understanding of string handling operations in your chosen programming language.
Write a program which asks the user to enter a word. The program should then calculate and output the user’s score based on the length of the word.
- 3 letters: 1 point
- 4-5 letters: 2 points
- 6-7 letters: 3 points
- 8-9 letters: 5 points