JAV745-Project - Who Wants to be a Millionaire (CLI)- fall 2023

docx

School

Seneca College *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

7

Uploaded by MagistrateDuck585

Report
Course : Java Programming JAV745 Project 1 of 1 Contribution:30% of course Prof: Mehrnaz Zhian Date Given: Nov6,2023 Date Due: Dec 10,2023 Background: You will need to have access to a code editor and have a thorough understanding of Programming Fundamentals such as : variables, operators, expressions, conditionals, loops, arrays, methods, strings and Object Oriented Concepts such as Abstraction, Encapsulation, Inheritance and Polymorphism, Error Handling, Project Submission Requirements This Project will not be accepted via email, any other platform except the blackboard An electronic copy of your work (zip your project folder) should be uploaded to Blackboard by midnight of the due date . A mandatory one-on-one in person demonstration of your app and code is required. The demo dates will be announsed Failure to demo this project will result in a 0 for this assessment Failure to answer questions regarding foundational concepts about your project and how the said concepts were used within your code would result in 0 . You to comment each unit of the code Each member of the group should present what they have done in the project, the project date of the demo demonstration will be posted on the blackboard. ACADEMIC INTEGRITY Academic offences are taken seriously. You are responsible for reading and respecting the college’s Student Code of Conduct and Academic Integrity policies. Unless otherwise specified, all evaluations are to be done individually. “Cheating” includes, but is not limited to, the following activities: 1
Copying work (in whole or in part) from another person, even if that person is not in your class. Submitting work (in whole or in part) that is not your own (work that you found online, work that was completed by someone else, any portion of work that you did not do yourself. Allowing another student to copy your work (in whole or in part) or giving your work to another student with the purpose of allowing them to submit any part of that work as their own. Submitting code from the internet that is either 1) an exact copy and paste of the internet source; or, 2) excessively copied from the internet source To prevent issues of academic integrity, it is imperative that you are vigilant that your code is not duplicated, in part or whole, by another learner. Duplication can mean: identical code; or code that is semantically identical in naming and overall construction. Should the instructors discover academic dishonesty as defined above and per the College Academic Integrity Policies, a grade of 0 will be assigned to all parties involved. Please review Seneca’s policies on Academic Integrity, specifically:“Each student should be aware of the College's policy regarding Cheating and Plagiarism. Seneca's Academic Policy will be strictly enforced.To support academic honesty at Seneca College, all work submitted by students may be reviewed for authenticity and originality, utilizing software tools and third party services. Please visit the Academic Honesty site on http://library.senecacollege.ca for further information regarding cheating and plagiarism policies and procedures. Specification Overview You have been asked to develop a one player Java CONSOLE application that mimics the famous game show called “ Who Wants To Be A Millionaire The game must be a Command Line Interface (CLI) that will allow the user to play the game. Note, your game must be coded in the context of Object Oriented Programming. Thus, you must have meaningful classes with meaningful attributes. Make sure the naming conventions are correct 2
Requirement 1: Launch Screen When the player launches the app, he/she is presented with the following options Start the game → lets player start the game View the rules of the game → See rules about how to play the game All screens must have descriptive messages and/or prompts. Please note, to create a more realistic game, you should display a menu as follows: Start the game View the rules of the game - Note, when a user views the rules of the game, there must be an option that allows them to go back to the main menu . Exit the game Requirement 2: Choosing a Difficulty Option After the user hits the start game option he or she is presented with a “prompt” to enter their name and then another prompt to determine whether he or she wants to pursue the easy difficulty option or the hard difficulty option. The players that select the Easy difficulty option will be asked up to a maximum of 9 questions on any topics at varying difficulties. Whereas, the Players that choose the Hard difficulty option will be asked up to a maximum of 15 questions on any topics. Players must choose the most correct answer choice of the four (4) possible answer choices provided. Both difficulty options must be played in three distinct rounds. See below for further rules: Requirement 3: Implementing Easy Option Round 1 In Round 1, the player will face up to three (3) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following: Question 1 is $100, Question 2 is $500 and Question 3 is $1,000. 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Upon correctly answering all questions in this round, a player can choose to walk away. If a player walks away at this round they will “ walk away ” with $1,000.00. Round 2 If the player successfully completes Round 1 and they choose not to walk away they will move on to Round 2. In round 2 the player will face up to three (3) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following amounts: Question 4 is $8,000, Question 5 is $16,000 and Question 6 is $32,000. Once the player correctly answers question 6, they can choose to “ walk away ” or move on to Round 3. If the player “ walks away ” they will walk away with $32,000. Round 3 If the player successfully completes Round 2 and they choose not to walk away they will move on to Round 3. In Round 3, the player will face up to three (3) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following amounts: Question 7 is $125,000, Question 8 is $500,000 and Question is 9 is $1,000,000. The player cannot walk away at this round however, once they complete this round they will win the game and walk away with 1 million dollars. Requirement 4: Implementing Hard Option Round 1 In Round 1, the player will face up to five (5) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following: Question 1 is $100, Question 2 is $200, Question 3 is $300, Question 4 is 500 and Question 5 is $1,000. Upon correctly answering all questions in this round, a player can choose to walk away after correctly answering Question5 which is the $1,000 question. If a player walks away at this level they will “ walk away ” with $1,000.00 4
Round 2 If the player successfully completes Round 1 and they choose not to walk away they will move on to Round 2. In round 2 the player will face up to five (5) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following amounts: Question 6 is $2,000, Question 7 is $4,000, Question 8 is $8,000, Question 9 is $16,000 and Question 10 is $32,000. Once the player correctly answers question 10, they can choose to “ walk away ” or move on to Round 3. If the player “ walks away ” after correctly answering question 10 then the will walk away with $32,000. Round 3 If the player successfully completes Round 2 and they choose not to walk away they will move on to Round 3. In Round 3, the player will face up to five (5) questions of varying degrees of difficulty. Each question has a respective dollar value. These dollar values shall include the following amounts: Question 11 is $64,000, Question 12 is $125,000, Question 13 is $250,000, Question 14 is $500,000 and Question is 15 is $1,000,000. The player cannot walk away at this round however, once they complete this round they will win the game and walk away with 1 million dollars. General rules: 1. FOR EACH QUESTION THE GAME MUST RANDOMLY SELECT A QUESTION FROM A BANK OF QUESTIONS! 2. Don’t repeat any questions throughout the entirety of the game 5
2. Please note, for both difficulty options, players are allowed 3 lifelines which are: a. 50/50- T his lifeline allows the game to eliminate two incorrect answers. b. Ask the Audience- This lifeline allows the player to “ask the audience” for the correct answer. Be creative with regards to how you implement this. c. Phone a friend - This lifeline allows the player to “phone to a friend” for the correct answer. Be creative with regards to how you implement this. d. You can only use each Life Line ONCE 3. The lifelines are only available in round 2 and round 3 for players who chose the hard option, whereas all lifelines are available from round 1 to players who chose the easy option. 4. After the player chooses their answer for any given question, they must be allowed to confirm that the choice selected is their final answer. If the user doesn't confirm their choice then they can change their answer to another option. 5. Once the user incorrectly answers a question they will lose the game and walk away with no money. 6. Proper error handling must be implementing to handle validation Rubric Description Marks Awarded Bank of Questions (at least 25 questions) 2 The game can generate a random Question 3 The game has no duplicate questions. That is, a question generated, cannot be 10 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
generated again throughout the life of the game. Round 1 functionality 10 Round 2 functionality 10 Round 3 Functionality 10 Lifeline functionality 7 Game ends once the player incorrectly answers a question. 3 OOP Design Model 10 Total 65 END 7