Question: Allowed to hardcode the consonants but please do not use dictionaries. batlh|honor cha'pujqut|dilithium crystal De'wI'| computer ghIgh | necklace HablI'|data transceiving device jabbI'ID|data transmission lasvargh|factory



batlh|honor cha'pujqut|dilithium crystal De'wI'| computer ghIgh | necklace HablI'|data transceiving device jabbI'ID|data transmission lasvargh|factory mIgh|be evil noch| sensor pong|name qawHaq|memory banks Qagh|error, mistake rIgh|be lame Sagh|be serious tayqeq| civilization voDleH emperor wa'les tomorrow yuQHom|planetoid 'avwI'|guard 1. Read data from klingon-english.txt 2. Ask the user to choose a Klingon consonant they want to practice with. Ask again if the user's answer is not a valid Klingon consonant, until the user enters a valid consonant. 3. Find a Klingon word that starts with the chosen consonant (the text file contains only one word that starts with any given consonant, so you don't need to use the random library) 4. Ask the user to translate the chosen word into Klingon 5. Print correct if the user's answer is correct 6. Print sorry, you're wrong! if the user's answer is wrong 7. If the answer is incorrect, show the first hint: the first and last characters of the correct Klingon word. When showing a hint, replace all other characters with a star () 8. If the answer is still incorrect, show the second hint: the first and the last characters plus an extra random character of the correct Klingon word. 9. Print The correct answer is ... if all three user's answers are wrong You must read data from the provided text file, that is absolutely essential in this lab assignment. You can not hardcode the words
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
