Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do not use/import any other library/package other than java.util.Scanner Neither implement nor use any custom/user-defined method(s)/function(s) for any task herein. Question 1 requires the
Do not use/import any other library/package other than java.util.Scanner Neither implement nor use any custom/user-defined method(s)/function(s) for any task herein. Question 1 requires the use of loops, whereas question 2 involves arrays. Question #1: Simple Brilliant Mind Game Jackpot Program (7pts) Nested Loops Office of Community Engagement, this time will lunch a game called "Brilliant Mind" in which any age appropriate student can participate as a contestant for the game. The "Brilliant Mind" game is a one player game that tests general knowledge with questions (the questions number and duration is not subject of this program) from ten consecutive categories topics (see Table- 1) in which each category has a fixed score value associated with it, (e.g. Sports: 19, Music: 18, etc.). Each completed category's questions will generate all the numbers of the category's score value that are NOT multiple of the category number. For example, the numbers that are generated after completing the category Literature, which has a score value of 18, (i.e. its numbers are from 1 to 18) that are not multiple to 2, since Literature is number 2 in the game category list, are: 1, 3, 5, 7, 9, 11, 13, 15, 17. The contestant is awarded Cryptom money, calculated based on the sum of the numbers displayed from each category. This sum will be cumulative from one category to the next. You have been selected to be part of this project in the capacity of a research Intern. In this regard, your primary task involves applying the use of nested loop to develop an algorithm and Java class/program to accomplish the following: # 1 Category Science Score Value 19 2 Literature 18 3 Sports 19 4 Animals 20 5 Television 19 6 Music 18 7 Business 19 8 Geography 19 9 Cities 18 10 Opera 19 Table1: Game categories' number and score 1. Write an algorithm for the Simple Brilliant Mind Game Jackpot Program, in a text file named AlgA3_Q1.txt. 2. Name of the class/program: A3_Q1. 3. Display a welcome/salutation message to the user of the program. 4. Display a prompt message for the user to enter a valid age, that should be higher than 15 and less than 125 years. 5. Process for each category the numbers in its score value that are NOT multiple of that category number. 6. Process the cumulative Cryptom money at the end of each category as a sum of the numbers computed in (5) above. 7. Display for each category the numbers that are not the multiple of the current category number, in the form of ten numbers per line, followed by the cumulated reward Cryptom money. 8. Finally, display a complimentary-close message as follows: Thank you for using my bespoke the Simple brilliant Mind Game Jackpot Program! The following are samples of screenshots to illustrate the expected behavior of your program. Your program must display the same information with the same format and should work for any valid user entered data. Welcome to the Simple Brilliant Mind Game Jackpot! How old are you? 14 11144 Error: Your input/entry is not a valid integer between 15 to 125. Kindly retry again! How old are you? 18 Your Jackpot for the Simple Brilliant Mind Game is: In the score of Science, the numbers that are not multiple of category 1 are: No numbers are found in this category!==> The Cryptom value 0. In the score of Literature, the numbers that are not multiple of category 2 are: 1, 3, 5, 7, 9, 11, 13, 15, 17, >The Cryptom value 81. In the score of Sports, the numbers that are not multiple of category 3 are: 1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, >The Cryptom value 208. In the score of Animals, the numbers that are not multiple of category 4 are: 1, 2, 3, 5, 6, 7, 9, 10, 11, 13, 14, 15, 17, 18, 19, >The Cryptom value 358. In the score of Television, the numbers that are not multiple of category 5 are: 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, > The Cryptom value 518. In the score of Music, the numbers that are not multiple of category 6 are: 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, The Cryptom value 653. In the score of Business, the numbers that are not multiple of category 7 are: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, The Cryptom value 822. In the score of Geography, the numbers that are not multiple of category 8 are: 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, >The Cryptom value 988. In the score of Cities, the numbers that are not multiple of category 9 are: 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, >The Cryptom value 1132. In the score of Opera, the numbers that are not multiple of category 10 are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, >The Cryptom value 1312. Thank you for using my bespoke the Simple Brilliant Mind Game Jackpot Program! Welcome to the Simple Brilliant Mind Game Jackpot! How old are you? 75 Your Jackpot for the Simple Brilliant Mind Game is: In the score of Science, the numbers that are not multiple of category 1 are: No numbers are found in this category!==> The Cryptom value 0. In the score of Literature, the numbers that are not multiple of category 2 are: 1, 3, 5, 7, 9, 11, 13, 15, 17, ==> The Cryptom value 81. In the score of Sports, the numbers that are not multiple of category 3 are: 1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, >The Cryptom value 208. In the score of Animals, the numbers that are not multiple of category 4 are: 1, 2, 3, 5, 6, 7, 9, 10, 11, 13, 14, 15, 17, 18, 19, --> The Cryptom value 358. In the score of Television, the numbers that are not multiple of category 5 are: 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, >The Cryptom value 518. In the score of Music, the numbers that are not multiple of category 6 are: 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, > The Cryptom value 653. In the score of Business, the numbers that are not multiple of category 7 are: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, The Cryptom value 822. In the score of Geography, the numbers that are not multiple of category 8 are: 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, >The Cryptom value 988. In the score of Cities, the numbers that are not multiple of category 9 are: 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, >The Cryptom value 1132. In the score of Opera, the numbers that are not multiple of category 10 are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, >The Cryptom value 1312. Thank you for using my bespoke the Simple Brilliant Mind Game Jackpot Program!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started