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
Mustafa’s soccer team is planning a school dance as a fundraiser. The DJ charges $200 and decorations cost $100. The team decide
harkovskaia [24]
40 students makes for the DJ.
20 students makes for the decorations.
300 students makes for the profit.
so there was 360 students that went to the dance.
3 0
3 years ago
Read 2 more answers
Evaluate the expression |3x-1| for x=-2
Andreyy89
The answer is 7
because the equation is |(3)(-2)-1|
3 0
3 years ago
Read 2 more answers
Evaluate 1 plus negative 2/3 minus (-m) where m is 9/2
Mariana [72]

Answer:

Step-by-step explanation:

Negative 2/3 means -2/3

Hence;

1 + (-2/3) - (-m)

= 1 - 2/3 + m (positive x negative = negative, negative x negative = positive)

Substituting 9/2 for the value of m

= 1 - 2/3 + 9/2

The L.C.M = 6

= ( 6 - 4 + 27)/6

= 29/6

8 0
3 years ago
Find the value of x. Explain your reasoning. (5x − 12) + (x + 6) = because the consecutive angles of a parallelogram are . Solvi
Verizon [17]

Answer:

x=1

Step-by-step explanation: Snap Add?

I don't know what this means:

"because the consecutive angles of a parallelogram are . Solving for x gives x ="

I know that (5x-12) + (x+6)

1. 5x-12+x+6=0

2.6x-6=0

3.6x=6

4.x=1

6 0
3 years ago
I need help plssssssssss
drek231 [11]

We can say that the area of the figure equals...

5.5 by 9 rectangle - 2 by 2 triangle - 2 by 5 triangle - 9 by 3.5 triangle

5.5 by 9 rectangle = 5.5 x 9 = 49.5 un²

2 by 2 triangle = 1/2 x 2 x 2 = 2 un²

2 by 5 triangle = 1/2 x 2 x 5 = 5 un²

9 by 3.5 triangle = 1/2 x 9 x 3.5 = 15.75 un²

area of figure = 49.5 un² - 2 un² - 5 un² - 15.75 un² = 26.75 un²

answer: 26.75 un²

5 0
3 years ago
Read 2 more answers
Other questions:
  • The table shows pattern p and patterns q complete the table
    5·2 answers
  • The line segment joining the points a (3,2) and b (5,1) is divided at the point p in the ratio 1:2 and p lies on the line 2x-18y
    14·1 answer
  • Solve each equation for the indicated variable <br><br> K=a-y;y<br><br> Dfg=h;g<br><br> W=x/a-b;x
    7·1 answer
  • How many different ways can a director select 4 actors from a group of 20 actors?
    12·1 answer
  • Round to nearest tenth
    9·2 answers
  • Order the following from greatest to least
    5·1 answer
  • (14 POINTSS+ BRAINLIESTT)<br><br> How are food and oxygen made during the process of photosynthesis?
    15·2 answers
  • I got an answer but im really not sure if its right so please help
    6·2 answers
  • Grace needs to buy textbooks for her first semester in college. She borrows $660 and must pay the money back in equal amounts fo
    13·1 answer
  • Select the correct answer. What is this expression in simplest form? A. B. C. D.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!