1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
guapka [62]
3 years ago
9

SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN JAVA. Assume that the classes listed in the Java Quick R

eference have been imported where appropriate. Unless otherwise noted in the question, assume that parameters in method calls are not null and that methods are called only when their preconditions are satisfied. In writing solutions for each question, you may use any of the accessible methods that are listed in classes defined in that question. Writing significant amounts of code that can be replaced by a call to one of these methods will not receive full credit. This question involves a game that is played with multiple spinners. You will write two methods in the SpinnerGame class below. public class SpinnerGame { /** Precondition: min < max * Simulates a spin of a spinner by returning a random integer * between min and max, inclusive. */ public int spin(int min, int max) { /* to be implemented in part (a) */ } /** Simulates one round of the game as described in part (b). */ public void playRound() { /* to be implemented in part (b) */ } } (a) The spin method simulates a spin of a fair spinner. The method returns a random integer between min and max, inclusive. Complete the spin method below by assigning this random integer to result. /** Precondition: min < max * Simulates a spin of a spinner by returning a random integer * between min and max, inclusive. */ public int spin(int min, int max) { int result; return result; }

Computers and Technology
1 answer:
adoni [48]3 years ago
4 0

Answer:

Check the explanation

Explanation:

Player 1 Coin

Player 2 Coin

Player 1

Player 2

Round

Count at

Count at

Player

Player

Coin

Coin

Number

Beginning of

Beginning of

1

2

Outcome

Count at

Count at

Round

Round

Spends

Spends

End of

End of

Round

Round

Off-by-

one,

10 - 1

10

10

2

player 2

10 - 2

+

= 8

1

gains 1

= 10

coin

Same,

10 - 2

2

8

10

2

2

player 2

-

gains 1

6

+

=

1

=

9

coin

Off-by-

two,

6 - 1

+

3

6

9

3

player 1

2

9 - 3

gains 2

=

=

7

6

coins

Same,

4

7

6

2

2

player 2

7 - 2

6 - 2+

gains 1

=

5

=

coin

5

Kindly check the attached image below to see the well arranged table to solve the above question.

You might be interested in
What is ms- power point?​
WITCHER [35]

Answer:

Microsoft PowerPoint is a powerful slide show presentation program. It is a standard component of the company's Microsoft Office suite software, and is bundled together with Word, Excel, and other office productivity tools. The program uses slides to convey information rich in multimedia.

hope it work️

5 0
4 years ago
Read 2 more answers
What connects data center to your device?
konstantin123 [22]

My answer to the question is ISP(Internet Service Provider).

4 0
4 years ago
Write the definition of a function typing_speed, that receives two parameters. The first is the number of words that a person ha
m_a_m_a [10]

Answer:

The function code and the formula for the above question is listed below:

Explanation:

Function:

float typing_speed(int Number_of_words, int Time_in_seconds)

{

float time= Time_in_seconds/60;

float speed= Number_of_words/time;

return speed;

}

Formula for this algorithm or program:

Number of words per minute= number of words/ Time(in minutes).

Function Explanation

  • The above function defined in the c-language code, which is used to return the typing speed for any user when he enters the number of words and the time in seconds.
  • The speed is calculated with the help of the above-defined formula.
  • The first statement of the code is used to change the time in a minute.
  • The second statement of the code is used to calculate the speed by the help of speed formula.
  • Then the third statement returns the value of the speed variable.

6 0
3 years ago
What would be the most constructive response
natima [27]

Answer:

we cant tell what your talking abt please repost with at pitcher or a exolination

Explanation:

3 0
3 years ago
_______ refers to the structure or format of the data, meaning the order in which they are presented.
7nadin3 [17]

Answer:

The correct answer for the given question is option(b) i.e syntax

Explanation:

Syntax is the grammar of the structure format or order of the data meaning in which they are presented .syntax is the set of rules that define  the words,symbol are to be a correctly structured or documented in that language.

Semantics differentiate the meaning of an data from its format it is not describe structure or format of the data so this option is wrong.

timing is not the correct option so correct answer is syntax.

8 0
3 years ago
Other questions:
  • What is does the word multimedia mean?
    5·2 answers
  • Write a static method named textcount that takes a scanner representing a file as a parameter and that reports various statistic
    11·1 answer
  • In steps<br> Urgent please
    14·1 answer
  • Describe a time when you influenced someone else’s knowledge around technology, whether it be an app, a new gadget, etc. What di
    14·1 answer
  • What does it mean to have an "online presence"? Explain how it can affect a job search?
    11·1 answer
  • When users talk about font size,
    10·2 answers
  • Which of the following access control techniques allows the user to feel empowered and able to change security attributes?
    5·1 answer
  • A.)Distinguish between software suite and integrated software.
    7·1 answer
  • When an item in a menu is black, it means that _____.
    7·1 answer
  • Chantal has configured the network at her company's new headquarters with a number of VLANs. All devices joined to the individua
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!