HTML and Javascript assignment We are creating a game that has a menu system. The menu system displays and asks the user
Posted: Tue Jul 12, 2022 8:27 am
HTML and Javascript assignment
We are creating a game that has a menu system. The menu systemdisplays and asks the user what type of game they want to play. Thefirst option is to play a word count game and the second is apalindrome checker.The word count game will ask the user to enter a sentence. Theprogram will then tell the user how many words (or lists ofcharacters separated by a space) there are in the sentence.A palindrome is a word or list of characters that are the samegoing from front to back. For example – Hannah is the same, Abba isthe same, etc. So this game will ask the user to enter a word andIf it is the same both forward to back it will display “The wordXXX is a palindrome.” Otherwise it will display “Sorry, XXX is nota palindrome”.
EACH OF THE GAMES MUST BE SEPARATE MODULES THAT ARECALLED BY THE MAIN MODULE
We are creating a game that has a menu system. The menu systemdisplays and asks the user what type of game they want to play. Thefirst option is to play a word count game and the second is apalindrome checker.The word count game will ask the user to enter a sentence. Theprogram will then tell the user how many words (or lists ofcharacters separated by a space) there are in the sentence.A palindrome is a word or list of characters that are the samegoing from front to back. For example – Hannah is the same, Abba isthe same, etc. So this game will ask the user to enter a word andIf it is the same both forward to back it will display “The wordXXX is a palindrome.” Otherwise it will display “Sorry, XXX is nota palindrome”.
EACH OF THE GAMES MUST BE SEPARATE MODULES THAT ARECALLED BY THE MAIN MODULE