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
(10x-5) +(9x + 6)<br> simplify the answer ASAP
san4es73 [151]
90x^2+15x-30 (hope this helps)
6 0
3 years ago
Read 2 more answers
Please help me with thsi​
Bogdan [553]

Answer:

Option 2

Step-by-step explanation:

I say option to because it is 990

8 0
4 years ago
How is 9.746 x 1013 written in standard form?
sammy [17]

Answer:

9872.698 is 9.746 x 1013 in standard form

4 0
4 years ago
6. What is the sum of the solutions?
vlada-n [284]

x * x = x^2

x * .7 = .7x

-6 * x = -6x

-6 * .7 = -4.2

x^2 + .7x - 6x -4.2

x^2 - 5.3 - 4.2

x = 6

8 0
3 years ago
Lee watches TV for 2 hours per day. During that time, the TV consumes 250 watts per hour. Electricity costs (10 cents)/(1 kilowa
vladimir1956 [14]

Answer:

$1.5

Step-by-step explanation:

Lets us first calculate energy consumed by TV in 30 days.

Energy consumed by TV in one hour : 250 watts.

TV operated 2 hours a day

so energy consumer by TV in a day = 250 * 2 watts = 500 watts hour

Energy consumed by TV in 30 day = energy consumer by TV in a day * 30

         = 500*30 watts = 15,000 watt-hour

Convert total energy consumed in kilo watt hour  

we know that one kilowatt hour = 1000 watt-hour

Thus, 15,000 watt-hour = 15,000/1000 kilowatt-hour = 15 kilowatt-hour

________________________________

cost of electricity = 10 cents per   kilowatt-hour

cost of electricity for 15 kilowatt-hour = 15* cost of electricity for one  kilowatt-hour( which is 10 cents)

=>15*10 = 150 cents

As $1 = 100 cents

hence 150 cents = $150/100 = $1.5 .

Thus, it cost $1.5 to to operate for a month of 30 days.

6 0
3 years ago
Other questions:
  • Find the area of a rectangular room(in square feet) <br> that is 15 feet by 120 inches.
    8·1 answer
  • Hurry does anyone have the answers to this
    13·1 answer
  • ????? pls help hdjsjddh​
    15·1 answer
  • When the input is 5, what is the output for the square function?
    6·2 answers
  • Which of the triangles shown are isosceles triangles?
    15·2 answers
  • Question 3<br> Write the rational number as a decimal.
    9·2 answers
  • Please help i need an answer ASAP
    7·1 answer
  • How to write -1/2x + y=4 in slope form
    10·1 answer
  • Simplify 7 to the power of 8 x 7 to the power of 3 x 7 to the power of 4 divide 7 to the power of 9 x 7 to the power of 5
    9·1 answer
  • HELPPP THIS IS TIMED what is the answer
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!