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
A bracelet that regularly sells for $44 is on sale for 25% off. Find the sale price of the bracelet?
Vsevolod [243]
Regular price : $44

Discount : 25%

So, discount amount : 25% of 44
= 25/100 × 44
= $11

So, amount after applying discount = $44 - $11 = $33
8 0
3 years ago
A tree casts a 25 foot shadow. At the same time of day, a 6 foot man standing near the tree casts a 9 foot shadow. What is the a
kirza4 [7]
Ratio of height of the man to the length of the shadow = 6:9 = 2:3
Ratio of height of the tree to the length of its shadow = x:25 = 2:3
x/25 = 2/3
x = (25 x 2)/3 = 50/3 = 16.67

Therefore the approximate height of the tree to the nearest foot is 17 feet.
7 0
3 years ago
Read 2 more answers
Suppose you scored 78,78,and 79 on the first three tests. Is it possible
xxMikexx [17]
Your average would be
83.75
4 0
2 years ago
Read 2 more answers
Plz answer all measures plz ASAP thx
LiRa [457]

Lines <em>a</em> and <em>b</em> are parallel, so lines <em>p</em>, <em>q</em>, and <em>t</em> are considered to be transversals. To solve this, you make use of the fact that alternate interior angles are equal, as are alternate exterior angles, as are corresponding angles. Of course any linear pair of angles is supplementary.

∠1 = 90° — corresponding angle to the right angle above it

∠2 = 68° — the sum of 22° and angles 1 and 2 is 180°

∠3 = 112° — supplementary to angle 2 (and the sum of 22° and 90°, opposite interior angles of the triangle)

∠4 = 112° — equal to angle 3

∠5 = 68° — equal to angle 2; supplementary to angle 4

∠6 = 56° — base angle of isosceles triangle with 68° at the apex; the complement of half that apex angle

∠7 = 124° — supplementary to the other base angle, which is equal to angle 6; also the sum of angles 5 and 6

∠8 = 124° — alternate interior angle with angle 7, hence its equal.

3 0
3 years ago
Read 2 more answers
What is the relationship between the ratios? 48 72 and 6 9 Drag and drop to complete the statement. The ratios are . proportiona
3241004551 [841]
You mean 6 9 or 69 ....
4 0
3 years ago
Read 2 more answers
Other questions:
  • Grace weighs 2 times as much as Willow plus 3 pounds. Which expression represents this if g = Grace &amp; w = Willow?
    15·2 answers
  • Evaluate f(x) = 5x2 - 4x - 9 for f(-2)
    10·1 answer
  • 2. Given: 2(x– 9) = -10; Prove: X= 4<br> What are the reasons
    10·1 answer
  • Which of the following side measurements could make an equilateral triangle and isosceles triangle?
    15·2 answers
  • Which of the following is not an example of a perfect square? a √9 b √200 c √4 d √64
    14·1 answer
  • Write an equation for the value of the truck from bear tractors.
    10·1 answer
  • Salma, joe, and alan sent a total of 106 text messages during the weekend, salma sent 9 fewer messages than alan. Joe sent 3 tim
    10·1 answer
  • The constraints of a problem are listed below. What are the vertices of the feasible region?
    5·1 answer
  • 5) The bakers at Healthy Bakery can make 160 bagels in 5 hours. How many
    13·1 answer
  • NO LINKS!! Verify each identity. Show work please<br><br><br><br>​
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!