Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODE MUST BE IN JAVA 4. Here is a slight variation of Jeopardy! game we covered in the course - it has penalty for wrong

CODE MUST BE IN JAVA

image text in transcribed

4. Here is a slight variation of Jeopardy! game we covered in the course - it has penalty for wrong answers. Also, there are 3 rounds, each round has 5 categories & each category has 6 questions worth $100, $200, $300, $400, $500 & $1000 total 3 * 5 * 6 90 questions, so 90 lines of input, however, if a player answers a question incorrectly, that line should NOT be counted, since another player may attempt the same question. If no one answers a question correctly, that question is skipped - it is indicated with 0 in input. See the table below to understand it better. Output the final score for each player and output the winner. Sample Input Explanation 1 200 2 300 3 1000 2-200 3 200 3 400 Player 1 gets 200 for 1st question Player 2 gets 300 for 2nd question Player 3 gets 1000 for 3rd question Player 2 loses 200 for 4th question Player 3 gets 200 for the same question Player 3 gets 400 for 5th question No one answered 6th question Player 2 gets 500 for 7th question Player 3 gets 1000 for 8th question 8 questions done, 82 to go! 2 500 3 1000 (82 more questions) Output format: Player 1: XXXXX Player 2: YYYYY Player 3: ZZZZz Player N is the winner! 4. Here is a slight variation of Jeopardy! game we covered in the course - it has penalty for wrong answers. Also, there are 3 rounds, each round has 5 categories & each category has 6 questions worth $100, $200, $300, $400, $500 & $1000 total 3 * 5 * 6 90 questions, so 90 lines of input, however, if a player answers a question incorrectly, that line should NOT be counted, since another player may attempt the same question. If no one answers a question correctly, that question is skipped - it is indicated with 0 in input. See the table below to understand it better. Output the final score for each player and output the winner. Sample Input Explanation 1 200 2 300 3 1000 2-200 3 200 3 400 Player 1 gets 200 for 1st question Player 2 gets 300 for 2nd question Player 3 gets 1000 for 3rd question Player 2 loses 200 for 4th question Player 3 gets 200 for the same question Player 3 gets 400 for 5th question No one answered 6th question Player 2 gets 500 for 7th question Player 3 gets 1000 for 8th question 8 questions done, 82 to go! 2 500 3 1000 (82 more questions) Output format: Player 1: XXXXX Player 2: YYYYY Player 3: ZZZZz Player N is the winner

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

3. What are the potential limitations of group discussion?

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago

Question

=+ Why have these changes occurred?

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago