Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M91592965
  • Price:- $150

Guranteed 48 Hours Delivery, In Price:- $150

Have any Question?


Related Questions in Java

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As