Jeopardy is a well-known trivia game show. On the TV show, there are six different categories...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
"Jeopardy" is a well-known trivia game show. On the TV show, there are six different categories of trivia questions (History, Geography, etc.) Each category contains five questions, with different dollar prizes for each question. In the first round, the dollar amounts are $200, $400, $600, $800, and $1000. Usually, the easiest question is worth $200, and the most difficult question is worth $1000. For this project, you will be creating a simple version of Jeopardy with one category (unless you wish to include more). When the game loads, present the user with a welcome message, and ask them for their name. Then, tell the user what category of questions they will be given (all the questions should be related to a similar topic), and ask them to type in the dollar amount they want (200, 400, 600, 800 or 1000). If they do not type in one of these five choices, they should be presented with a message such as "Not a valid choice." and the program should then end. You must use a switch to control what happens based on the dollar amount entered. For each of your five cases, you should present the user with a trivia question. After the user types their answer, check to see if it is correct. If their answer is correct, remind them of how much money they've won. The following are some additional requirements for the project: • There must be at least one question where the correct answer is a person's name. For this question, you must accept either their full name or just their last name as correct. • There must be at least one question where the correct answer is an integer or a double. • For Strings, it shouldn't matter if the correct answer is typed in uppercase or lowercase. • If the user types an incorrect answer, be sure to tell them the correct answer afterward. Address the user by name when telling them if their answer was correct or incorrect. You must use if...else statements to check if the user's answers are correct. This means that you will need to place if...else statements inside your switch cases. This is called nesting. Remember to include //comments and a header, as well as an IPO Chart and Variable Chart. For the IPO Chart, switches and if...else statements should be discussed under "Processing." Sample runs of the program: run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 400 Which Canadian computer scientist designed the first version of Java? James Gosling Correct, Bob! You win $400. BUILD SUCCESSFUL (total time: 5 seconds) run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 400 Which Canadian computer scientist designed the first version of Java? Gosling Correct, Bob! You win $400. BUILD SUCCESSFUL (total time: 5 seconds) run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 1000 In what year did Grace Hopper report the first ever computer bug? 1948 Incorrect, Bob. The correct answer was 1947. BUILD SUCCESSFUL (total time: 10 seconds) "Jeopardy" is a well-known trivia game show. On the TV show, there are six different categories of trivia questions (History, Geography, etc.) Each category contains five questions, with different dollar prizes for each question. In the first round, the dollar amounts are $200, $400, $600, $800, and $1000. Usually, the easiest question is worth $200, and the most difficult question is worth $1000. For this project, you will be creating a simple version of Jeopardy with one category (unless you wish to include more). When the game loads, present the user with a welcome message, and ask them for their name. Then, tell the user what category of questions they will be given (all the questions should be related to a similar topic), and ask them to type in the dollar amount they want (200, 400, 600, 800 or 1000). If they do not type in one of these five choices, they should be presented with a message such as "Not a valid choice." and the program should then end. You must use a switch to control what happens based on the dollar amount entered. For each of your five cases, you should present the user with a trivia question. After the user types their answer, check to see if it is correct. If their answer is correct, remind them of how much money they've won. The following are some additional requirements for the project: • There must be at least one question where the correct answer is a person's name. For this question, you must accept either their full name or just their last name as correct. • There must be at least one question where the correct answer is an integer or a double. • For Strings, it shouldn't matter if the correct answer is typed in uppercase or lowercase. • If the user types an incorrect answer, be sure to tell them the correct answer afterward. Address the user by name when telling them if their answer was correct or incorrect. You must use if...else statements to check if the user's answers are correct. This means that you will need to place if...else statements inside your switch cases. This is called nesting. Remember to include //comments and a header, as well as an IPO Chart and Variable Chart. For the IPO Chart, switches and if...else statements should be discussed under "Processing." Sample runs of the program: run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 400 Which Canadian computer scientist designed the first version of Java? James Gosling Correct, Bob! You win $400. BUILD SUCCESSFUL (total time: 5 seconds) run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 400 Which Canadian computer scientist designed the first version of Java? Gosling Correct, Bob! You win $400. BUILD SUCCESSFUL (total time: 5 seconds) run: Welcome to Java Jeopardy! Please type your name: Bob The category for today's game is Computer Science. Please pick one of the following dollar values: 200, 400, 600, 800, 1000 1000 In what year did Grace Hopper report the first ever computer bug? 1948 Incorrect, Bob. The correct answer was 1947. BUILD SUCCESSFUL (total time: 10 seconds)
Expert Answer:
Answer rating: 100% (QA)
Heres a simple Java program implementing the described requirements import javautilScanner public cl... View the full answer
Related Book For
Applied Regression Analysis and Other Multivariable Methods
ISBN: 978-1285051086
5th edition
Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You have been employed to create program to assist the manager of a coffee shop. You decide to make a prototype application in Java to show what you can do, and to be able to ask the manager what...
-
According to Dr. Grant, creatives are people who ________. A. Are procrastinators B. Act on multiple ideas C. Plan out each detail D. Are highly confident with no doubts about their success
-
High in the Rocky Mountains, a biology research team has drained a lake to get rid of all sh. After the lake was refilled, they stocked it with an endangered species of Greenback trout. Of the 2000...
-
Using trigonometric identities, show that the parametric equations x = sint, y = 2(1 cos 2 t) are the equations of a parabola.
-
Refer to the information in Problem 21-1B. Tohono Companys actual income statement for 2017 follows. Required 1. Prepare a flexible budget performance report for 2017. Analysis Component 2. Analyze...
-
Glendo Farm Supply Company manufactures and sells a pesticide called Snare. The following data are available for preparing budgets for Snare for the first 2 quarters of 2014. 1. Sales: quarter 1,...
-
State suitable case for each model Hierarchical Model Network data model Relational model Object-oriented data model
-
American Dream, is a retail and entertainment complex located in the Meadowlands Sports Complex in Rutherford, NJ. The mega-sized mall opened only a few months prior to the start of COVID in the...
-
Decide if the following claims are true or false, providing either a proof or counterex- ample to justify each conclusion. Assume throughout that h is defined and continuous on all of R. (a) If h(x)...
-
3 The following information is from Sander's Sync. Inc. 8 points REQUIRED a. Calculate goods available for sale b. Calculate cost of goods sold. Goods Available For Sale Merchandise Inventory March 1...
-
Can you provide a legal analysis over the issue of immigrant resources in schools. Provide a conclusion as to the resources needed to help with the improvement of immigrant youth in schools.
-
explain the journal entries .how can be it create ?
-
However, before they can be replaced the current machines must go through the proper retirement and transition process. As an IT professional you have been assigned to a team who is responsible for...
-
Janelle owns her own boutique and uses an Internet-connected device to run credit card transactions. In the event of a connection issue, she has documented specific procedures for how to process...
-
6. If A is a skew symmetric matrix, then At -A b. . 0 d. diagonal matrix . 7. The number of non-zero rows in an echelon form is called? . Rank of the matrix b. Reduced echelon matrix . Trace of the...
-
Show that if A is any m n matrix, then Im A = A and AIn = A.
-
Ten randomly selected mental institutions were examined to determine the effects of three different antipsychotic drugs on patients with the same types of symptoms. Each institution used one and only...
-
The data listed in the following table are from a study by Benignus and others (1981). Blood and brain levels of toluene (a commonly used solvent) were measured in rats following a 3-hour inhalation...
-
In a study by Yoshida (1961), the oxygen consumption of wireworm larva groups was measured at five temperatures. The rate of oxygen consumption per larva group (in milliliters per hour)the dependent...
-
A cyclotron is made of sheet metal in the form of an empty tuna-fish can, set on a table with a flat-side down and then sliced from above through its center into two D-shaped pieces. The two "Dees"...
-
A nice feature of the cyclotron described in the preceding problem is that the alternating current frequency applied to the "Dees" is a constant \(\omega=q B / m c\) for nonrelativistic particles,...
-
Consider two inertial frames \(\mathcal{O}\) and \(\mathcal{O}^{\prime}\) where \(\mathcal{O}^{\prime}\) is moving with velocity \(\mathbf{v}\) relative to \(\mathcal{O}\). We split all three-vectors...
Study smarter with the SolutionInn App