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
KonstantinChe [14]
2 years ago
11

Write the definition of a class Clock. The class has three instance variables: One of type int called hours, another of type boo

lean called isTicking, and the last one of type Integer called diff. You should also write a constructor that takes three parameters -- an int, a boolean, and another int. The constructor should set the instance variables to the values provided.
Mathematics
1 answer:
Vikki [24]2 years ago
6 0

Step-by-step explanation:

The definition of class as per given information is written below;

public class Clock

{

private int hours;

private boolean isTicking;

private Integer diff;

}

The constructor that takes the three variables and then set the values to the instance variables is;

public Clock (int hours, boolean isTicking, int diff)

{

this.hours = hours;

this.isTicking = isTicking;

this.diff = new Integer (diff);

}

You might be interested in
The annual precipitation amounts in a certain mountain range are normally distributed with a mean of 104 inches, and a standard
dsp73

Answer:

91.92% probability that the mean annual precipitation during 49 randomly picked years will be less than 106.8 inches

Step-by-step explanation:

To solve this question, we need to understand the normal probability distribution and the central limit theorem.

Normal probability distribution:

Problems of normally distributed samples are solved using the z-score formula.

In a set with mean \mu and standard deviation \sigma, the zscore of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

Central limit theorem:

The Central Limit Theorem estabilishes that, for a random variable X, with mean \mu and standard deviation \sigma, the sample means with size n of at least 30 can be approximated to a normal distribution with mean \mu and standard deviation s = \frac{\sigma}{\sqrt{n}}

In this problem, we have that:

\mu = 104, \sigma = 14, n = 49, s = \frac{14}{\sqrt{49}} = 2

What is the probability that the mean annual precipitation during 49 randomly picked years will be less than 106.8 inches

This is the pvalue of Z when X = 106.8. So

Z = \frac{X - \mu}{\sigma}

By the Central Limit Theorem

Z = \frac{X - \mu}{s}

Z = \frac{106.8 - 104}{2}

Z = 1.4

Z = 1.4 has a pvalue of 0.9192

0.9192 = 91.92% probability that the mean annual precipitation during 49 randomly picked years will be less than 106.8 inches

8 0
3 years ago
One is 25% of what number
Sergio039 [100]

Answer:

5 i think

Step-by-step explanation:

what your asking is 5x5? so 25

4 0
2 years ago
Read 2 more answers
Help ASAP! I’m confused. Thanks!!
KATRIN_1 [288]

Answer:

B

Step-by-step explanation:

3 0
2 years ago
Read 2 more answers
Mee: 5324611502 Pa: here​
arlik [135]

Answer:

yuh

Step-by-step explanation:

3 0
2 years ago
In parallelogram EFGH, the measure of angle G is (4x + 16)° and the measure of angle H is (2x − 16)°. What is the measure of ang
asambeis [7]

Answer:

m∠H = 44°

Step-by-step explanation:

Consecutive angles of a parallelogram are supplementary.  So,

∠H and ∠G are supplementary

4x + 16 + 2x - 16 = 180

6x = 180

x = 30

m∠H = 2x - 16 = 2(30) - 16 = 60 - 16 = 44°

4 0
2 years ago
Other questions:
  • Brady dropped a bouncy ball from a height of 64 feet. After the second bounce, the ball reached a height of 36 feet. write a rul
    12·1 answer
  • 98 Points And Brainliest!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!A poll asked 15 men in two age groups, 30 and younger and older than 3
    5·1 answer
  • If f(x) = x2 – 2x and g(x) = 6x + 4, for which value of x does (f + g)(x) = 0?
    13·1 answer
  • T is the midpoint of PQ. PT = (6x-3) and QT = (2x+5)
    11·2 answers
  • Can Someone Help Me With This
    8·1 answer
  • A normal distribution has a mean of 75 and a standard deviation of 10 use the standard normal table to find the probability that
    15·1 answer
  • Factorise 8m square - 2m - 15 can someone do it quickly pls​
    12·1 answer
  • The Marine Discovery Aquarium sells ocean-themed cookies in their gift shop. Last month, they sold 65 shark cookies and 85 clown
    6·1 answer
  • Please. I only need help on parts A and B. Please DO NOT just answer with you don't know or something compelety random. Thanks.
    6·1 answer
  • Please help spring break homework!!
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!