Develop a one player java multiple choice math game

Assignment Help JAVA Programming
Reference no: EM13920067 , Length: 3

Detailed Specification

This assignment must be completed as an individual assignment.

You have been asked to develop a one player java multiple choice math game that tests children, between ages 8 to 13 years old, ability to add, subtract and divide.

At start up, the game should thoroughly display the rules of the game and then prompt the player to enter his or her name and age. Note, only children between the ages of 8 to 13 years old are allowed to play this game. Thus, if a player enters an age that does not meet the aforementioned criteria, then the game should abruptly end with a suitable error message.

The game must consists of 10 questions, which is broken down into three (3) game rounds. See below for rules regarding the game rounds:

Round 1

This round consists of four (4) questions, questions 1 through 4 and is deemed the "Add round". The intention of this round is to test the player's ability to add. For each question in this round, two random numbers must be generated. The first random generated number must be between 1 to 25 and the second random generated number must be between 1 to 9.

The game is then required to generate two multiple choice options. Each multiple choice option would contain a character and a number, one of which must be the correct answer. The player would then be required to enter the character (A or B) that corresponds to their answer.

Note, the order in which the correct answer appears and the incorrect number option must be randomized.

Example: Latoya you are on Round 1, Level 1. Can you please enter the letter which represents the correct answer for 24+8 :
A. 32 B. 12

Round 2

This round consists of four (4) questions, questions 5 through 8 and is deemed the "Subtract round". The intention of this round is to test the player's ability to subtract. For each question in this round, two random numbers must be generated. The first random generated number must be between 1 to 25 and the second random generated number must be between 1 to 9. Note, the first number must be greater than the second number.

The game is then required to generate two multiple choice options. Each multiple choice option would contain a character and a number, one of which must be the correct answer. The player would then be required to enter the character (A or B) that corresponds to their answer.

Note, the order in which the correct answer appears and the incorrect number option must be randomized.
Example: Latoya you are on Round 2, Level 5. Can you please enter the letter which represents the correct answer for 25 -5:
A. 15 B. 20

Round 3

This round consists of two (2) questions, questions 9 through 10 and is deemed the "Divide Round". The intention of this round is to test the player's ability to divide. For each question in this round, two random numbers must be generated. The first random generated number must be between 1 to 25 and the second random generated number must be between 2 to 9. Note, the first number must be divisible by the second number.

The game is then required to generate two multiple choice options. Each multiple choice option would contain a character and a number, one of which must be the correct answer. The player would then be required to enter the character (A or B) that corresponds to their answer.

Note, the order in which the correct answer appears and the incorrect number option must be randomized.

Example: Latoya you are on Round 3, Level 9. Can you please enter the letter which represents the correct answer for 20 / 4:
A. 5 B. 3

Other Rules

Every time a player correctly answers a question they should be awarded a certain number of points and then the said player would progress to the next subsequent question. However, if a player incorrectly answers a question they must lose points and would not be able to progress to the subsequent question until they correctly answer the current question. The minimum points a player can have is zero.
A player will win the game if he or she successfully answers all 10 questions correctly however, a player will lose the game if he or she run out of chances. Every time a player incorrectly answers a question they lose a "chance". A player has only 4 chances throughout the entire game.

When the game ends a report should be generated listing the player's name, age, total score, question number completed, and indicate if the player win or lose the game.

Note, the game can only end if the player wins or loses the game or if the player enters an incorrect age.

Functionality to be achieved

This Individual project is expressed as a number of levels. The level of functionality implemented in your game will determine the maximum possible mark that you can achieve. The actual mark awarded depends strongly on the quality of your work. Make sure that you fully understand the grading criteria. Starting with Level 1 you should incrementally enhance your work to include the next level.

LEVEL 1
Display a suitable welcome message to the player and a comprehensive description regarding the rules of the game.

LEVEL 2
Prompt for and capture the player's name and age. Also, ensure that only children who are between the ages of 8 to 13 years old can play the game.

LEVEL 3
Ensure all the functionality, specified in the aforementioned, for Round 1 is met.

LEVEL 4
Ensure all the functionality, specified in the aforementioned, for Round 2 is met.

LEVEL 5
Ensure all the functionality, specified in the aforementioned, for Round 3 is met.

LEVEL 6

The game should ONLY end based on the following criteria: 1. If a player wins the game by answering all 10 questions successfully. 2. If the player lose the game, as a result of running out of chances.

When the game ends a report should be printed, listing the following:- 1. Player's name 2. Player's age 3. Question completed by the player.

4. Total points achieved by the player. 5. Indicate if the player won or lose the game

Reference no: EM13920067

Questions Cloud

Paying an effective annual rate : You are paying an effective annual rate of 15.80 percent on your credit card. The interest is compounded monthly. What is the annual percentage rate on your account? How would you set this up and figure it out?
What is the dividend payout ratio and gross margin : If there is a revenue = to 500,000 Cogs = 400,000 GM = ? OPS exp = 10,000 Interest expence = 50.000 What is the Net Profit. What is Gross Margin? What is the dividend payout ratio?
Explain why the income statement uses different terminology : Explain why the income statement uses different terminology to date the income statement than is used to date the balance sheet.
Protecting organizational assets and information : Protecting organizational assets and information within the company has become a top priority for many organizational leaders.
Develop a one player java multiple choice math game : Display a suitable welcome message to the player and a comprehensive description regarding the rules of the game - You have been asked to develop a one player java multiple choice math game that tests children, between ages 8 to 13 years old, abilit..
Calculate the amount financed and the finance charge : Chan Chin bought a used Lexus ES300 priced at $25,750, a $2,600 down payment was made. The loan was for 36 months with monthly payments of $767. From this information, calculate (a) the amount financed, (b) the finance charge, (c) the deferred paymen..
What is role of a market maker in the purchase of stock : Explain the difference between the NYSE, NASDAQ and the O.T.C. In your answer explain which market is organized and unorganized? What is the role of a “market maker” in the purchase of stock?
Reading of the text and supplemental materials : 1. Fill in brief definitions of each primary ethical theory. 2. Identify alternate names or variations of each ethical system based on your reading of the text and supplemental materials. Match the real-world examples listed below with the correspon..
Net cash inflow from operating activities : Provide a reasonable explanation as to what may have caused the netcash inflow from operating activities.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a java class named headphones

Create a Java class named HeadPhones to represent a headphone set. The class contains- A private String data field named manufacturer that specifies the name of· A private boolean data field named pluggedIn that specifies if the headphone is plugge..

  Develop a reservation system program for specific flights.

develop a reservation system program for specific flights. A customer should be able to select from one of four categories of seats on flights from RDU to any of at least three other destinations. Based on the user input of seat type and destination,..

  Exception handling

Write a java program to Facilitates keyboard input by abstracting details about input parsing, conversions, and exception handling.

  Determine the best way to gather business rules

You have been hired by Happy Health to determine the best way to gather business rules for a new phone system.

  Write java program prints strings given at command line

Write down the program Average.java which just prints strings which it is given at command line, one per line. If nothing is given at command line, print "No arguments".

  Button to increase or decrease the number of the balls

Simulates a bouncing ball. Extend to allow mulitple balls. You can use the +I or -I button to increase or decrease the number of the balls and use teh Suspend and Resume buttoms to freeze the balls or resume bouncing. For each ball, assign a random c..

  Where the computer stores the list of exceptions

The call stack is where the computer stores the list of exceptions. Overloaded methods have the same name and parameter lists

  Total annual compensation policy to improve sales

The company has recently changed its total annual compensation policy to improve sales. A salesperson will continue to earn a fixed salary of $30,000. The current sales target for every salesperson is $400,000. Sales incentives are calculated as foll..

  Java class library with thousands of predefined classes

The Java Application Programming Interface is a Java class library with thousands of predefined classes

  Write a while loop that lets the user enter a number

1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.

  Program will read parameters plaintext and ciphertextfrom

Specifically, your program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).Then your program needs tocreate a file named "output.txt" (under the same directory) and prints the public key, private..

  Define a class called counter an object of this class is

define a class called counter. an object of this class is used to count things so it records a count that is a

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd