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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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