Sunday, 13 December 2015

Java Lab@home 11

1. 

1.
2.
3.
James is employed as a Software Developer at AxisPro Technologies. He has been assigned the task to create the Fill in the Blanks game for kids. The menu of the game should provide the following options: Play Instructions Quit Thereafter, James needs to implement the following functionalities: On selecting the Play option: Enter details: The player needs to enter his/ her name to start the game. Select Category: A list of categories, such as countries, fruits, and animals, should be displayed to the player. From the listed categories, the user needs to enter the name of the category from which he/ she wants to get the words. Guess alphabet: After selecting the category, a word from the respective category should be picked and the blanks for that word should be displayed, such as for TIGER, it should display _ _ _ _ _. The player will have to correctly guess an alphabet for each of the blanks. After guessing the correct word, the congratulation message should be displayed. In addition, blanks for the next word should be displayed till the list gets finished. If the player guesses the alphabet incorrectly, that alphabet must be added in the list of missed words. The player is allowed only the length of the word/2 incorrect guess. Calculate Score: Score, such as 10 or 20, should be given to the player on guessing a correct word. An appropriate message with the score should be displayed when the player guesses all the words correctly and when the game gets over. Scores with the name of the player in the Score.txt file must be stored or updated. Create Files: Create a Master.txt file that will contain the list of categories. Create a separate file for each category, such as for animals, create Animal.txt, and for fruits, create Fruit.txt. On selecting the Instructions option, the instructions of the game should be displayed. On selecting the Quit option, the game must terminate. Help James to implement the preceding functionalities.



Ans   CLICK HERE

No comments:

Post a Comment