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

  Prepare a job shop scheduling

Prepare a Job Shop Scheduling for 2x3 Jobs X Machines using Ant Colony Optimization

  Rewrite the following method using a while loop

Rewrite the following method using a while loop using an Iterator instead of the For each loop, files is an ArrayList storing String objects, also include ANY addition that you would need to have anywhere in the class.

  Write a java program that declares an array alpha of 50

Write a Java program that declares an array alpha of 50 elements of type double. Initialize the array so that the first 25 elements are equal to the square of the index variable, and the last 25 elements are equal to three times the index variable. O..

  Create a structure named dog with a string field

Create a Structure named dog with a string field for the Dog's name. Create a Structure named Cat with a string field for the Cat's name.

  Discuss the necessity of designing programs to handle except

Discuss the necessity of designing programs to handle exceptions of various types

  Define responsive design

Define Responsive Design and clarify what techniques can be used to create a responsive design for a web application? Explain what makes jQuery Mobile different from other JavaScript libraries such as jQuery and jQueryUI

  Write java code to read integers from an input file

write java code to read integers from an input file and write only the odd numbers to an output file. the two file names will be provided on the command line as the input file followed by the output file.

  An n n matrix is called a positive markov matrix

An n n matrix is called a positive Markov matrix if each element is positive and the sum of the elements in each column is 1. Write a program MarkovMatrix.java that prompts the user to enter a 33 matrix of double values. Use a method with the followi..

  Implement a java program that generates the receipt

Create a Receipt class that could be used by an automobile parts store. Items to include as data members are receipt number date of purchase, customer number, customer name and address, customer phone number, item number, description, unit price, ..

  Write an application that takes in an array of 30 grades

Write an application that takes in an Array of 30 Grades (integer) and returns the maximum grade, minimum grade, average of all grades, and prints a Bar Chart to show the grade distribution.

  Write a void method shift

Write a void method Shift that takes three parameters A, p, d. A is an array, p is the number of positions and d is the direction (L = left, R = right). The method should shift the contents of A p positions in the d direction.

  Develop a java program

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs.

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