Click here to Skip to main content
15,896,444 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Being an app developer, you need to ensure that the app provides the following functionalities:

n It is game that involves a single player.

n When the game starts, the player is prompted to enter the name.

n The game asks 20 questions to the player. The questions are randomly picked from a question pool (stored as a plain text file).

n For each question asked, four options are provided as possible answers to the question. The user needs to select the correct option to score points. For every correct answer, the player is rewarded with 100 points.

n The game will be over if either of the following conditions becomes true:

l The player selects a wrong option as an answer to the given question.

l The player answers all twenty questions correctly.

l The player quits the game.

n The game has four milestones at question number 5, 10, 15, and 20. The milestone ensures the minimum points to be rewarded to the player who has answered the milestone questions correctly. For example, consider that a player has answered the first 12 questions correctly, but selects a wrong option for question number 13. The actual score of the player at this stage is 1200 points. However, because of selecting an incorrect answer, the player will be rewarded with the points scored at the end of the previous milestone only. In this case, the player has not answered all the questions for milestone 3 correctly. Therefore, the player will be awarded with the points accumulated after milestone 2, which is after question number 10, for which the score is 1000. However, instead of answering question number 13 incorrectly, if the player opts to quit the game, the final score would be 1200 points only.

n The player is provided with two helplines as trump cards, TryTwice and ChangeQuestion.

n The player can opt to use the TryTwice trump card once in a playing session. This trump card allows the player to answer a question two times. In the first attempt, if the player gives an incorrect answer, there will still be another chance for the player to answer the same question. The player cannot quit the game on the question which has been opted for this trump card.

n The player can opt to use the ChangeQuestion trump card once in a playing session. This trump card allows the player to replace the given question with a different question from the question pool.

n The objective of the game is to score maximum points, while using the minimum number of trump cards.

n The UI of the game must indicate the progress of the user.

n The name of the player, the date when the game was played, and the points scored by the player need to be stored.

n The app provides the Help button on the UI that the player can click to view the rules of the game.

n When a game is over, the user should be given an option to start a new game.

n The player should have an option to check the scores by clicking a button on the UI. Clicking this button should display the scoreboard in the following format:



S. No.
Player Name
Date
Points Scored
Number of Unused Trump Cards

1.
$$$$$$$$
DD-MMM-YYYY HH-mm-SS
########
##

2.
$$$$$$$$
DD-MMM-YYYY HH-mm-SS
########
##

3.
$$$$$$$$
DD-MMM-YYYY HH-mm-SS
########
##




n The app allows the users to continue the game from where they left.

n The app allows the users to cancel the current game.

n The app must provide a fast and fluid experience by using page transitions.

n The app must be resolution independent.

n The controls added in the app should have a consistent look and feel.
Posted
Updated 9-May-15 2:50am
v2

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900