Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Create a method that will be used to test an IQ . This method will receive a String and a Random object when

1.Create a method that will be used to test an IQ. This method will receive a String and a Random object when called (an object of type Random), and return an int. In this method you will: create a new Scanner object, say hi to the user by name, get 2 random numbers between 7 and 133, and ask the user what the sum of the 2 numbers is. If the user is correct, display "Great Job!" and then assign IQ the value of 93 plus the sum of the 2 numbers. If the user is incorrect, say "No, the answer was...", display the answer, and assign IQ the value of 35 plus the sum of the 2 numbers. Return IQ.
2. When the user enters 2, back in the main method, call the method you created in #7, send the user's name and the random object you created as arguments to the method. Display the returned value as the user's IQ
3.Create a method that will be used to create a table. This method will receive a String when called and will not return anything. In this method you will: create a new Scanner object, prompt the user (using their name) for a letter, prompt the user for a number from 4 to 13(n), make sure the number is not less than 4 or greater than 13 IN ONE STATEMENT, if number is less than 4 or greater than 13 set it to 13, use for loops to display an n x n grid of the letter entered

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_2

Step: 3

blur-text-image_3

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago