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]
3 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]3 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
What is 15.37×5 show work
just olya [345]
This should be quite easy to explain. So the first thing you want to do is multiply them. This isn't to hard if you know your times tables. Don't worry about the decimal till the end.

 15.37
×      5
---------
 76.85

15.37 times 5 is 76.85

Now on to the decimal. All you need to do is move it two times to the left. You see how it's in between the 5 and 3? The same goes for your answer. So it is 76.85 

I hope this helped!! ^^ I can make this a little more easier to explain if you want me to just in case, ok? 
3 0
3 years ago
Read 2 more answers
Alex has a collection of sports cards. There are 10 cards in the collection, and 1/5 of them are hockey cards. Alex decides to d
Alborosie
If 1/5 of the cards are hockey cards, there are 2 hockey cards. if he wants to double that amount, he would multiply it by 2, so 2•2=4. The fraction of hockey cards is now is 2/5.
4 0
3 years ago
In this line of circles, the ratio of red circles to blue circles is 1:3 How many more circles would need to be added to make th
zaharov [31]

Answer:

The number of red circles to be added would be equal to 8 times the original amount of red circles

Step-by-step explanation:

Let

x ----> the number of red circles

y ----> the number of blue circles

Originally

\frac{x}{y}=\frac{1}{3}

y=3x ----> equation A

How many more circles would need to be added to make the ratio of red to blue 3:1

Let

n ----> the  number of additional red circles

\frac{x+n}{y}=\frac{3}{1} ----> equation B

substitute equation A in equation B

\frac{x+n}{3x}=\frac{3}{1}

solve for n

x+n=9x\\n=9x-x\\n=8x

therefore

The number of red circles to be added would be equal to 8 times the original amount of red circles

5 0
3 years ago
What number should be placed in the box to help complete the division calculation?
Drupady [299]
Multiply 13 by the 2 above the divide line

13*2 = 26
 so the number in the box should be 260
5 0
3 years ago
In 2015, there were approximately 33,400 firearm fatalities (homicide and suicides) Express this quantity in deaths per hour
cestrela7 [59]
8765.82 are how many hours there are in a year take that divided by 33400 and you get 3.81025392 or rounded up it would be 4 deaths per hour or just 3.8 per hour
4 0
3 years ago
Other questions:
  • Help with this question please and thank :>
    6·1 answer
  • The dance team traveled to a competition and traveled in two vans. The first van transported 2 adults and 5 students and cost $7
    5·1 answer
  • The radius of a circle is 56 cm. Find the circumference of the circle to the nearest tenth. 351.9 cm 9,852.0 cm 112.0 cm 88.0 cm
    6·1 answer
  • Write the equation of the line with the slope 4 through the point (-2,5)
    10·2 answers
  • Solve the equation and enter the value of x below.<br> x-12 = 8<br> X =
    13·2 answers
  • Can you help me with this please ​
    8·1 answer
  • Resolve 3x-1÷(x+1)^2 into partial fraction<br>​
    12·1 answer
  • PLESSS SOMEONE KNOW THIS
    7·1 answer
  • Ryan buys 61.5 ounces of lemonade for $24.60 find the unit price
    9·1 answer
  • Steven earns extra money babysitting. He charges $31.25 for 5 hours and $50 for 8 hours.Explain why the relationship between how
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!