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
The sector of a circle with a 60 millimeters radius has a central angle measure of 30° . What is the exact area of the sector in
ASHA 777 [7]
R = 60
60^2 * pi = 3600 * pi
angle = 30°
3600pi / 30 = 120pi
the answer is 120 * pi
7 0
3 years ago
Show that d^2y/dx^2=-2x/y^5, if x^3 + y^3=1
aalyn [17]

Answer:

y³ + x³ = 1

First, differentiate the first time, term by term:

{3y^{2}.\frac{dy}{dx} + 3x^{2}} = 0 \\\\{3y^{2}.\frac{dy}{dx} = -3x^{2}} \\\\\frac{dy}{dx} = \frac{-3x^{2}}{3y^{2}} \\\\\frac{dy}{dx} = \frac{-x^{2}}{y^{2}}

↑ we'll substitute this later (4th step onwards)

Differentiate the second time:

3y^{2}.\frac{dy}{dx} + 3x^{2} = 0 \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} + 6y(\frac{dy}{dx})^{2} + 6x = 0 \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} + 6y(\frac{dy}{dx})^{2} = - 6x \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} + 6y(\frac{-x^{2} }{y^{2} })^{2} = - 6x \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} + 6y(\frac{x^{4} }{y^{4} }) = - 6x \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} + \frac{6x^{4} }{y^{3} } = - 6x \\\\3y^{2}.\frac{d^{2} y}{dx^{2}} = - 6x - \frac{6x^{4} }{y^{3} } \\\\

3y^{2}.\frac{d^{2} y}{dx^{2}} =  - \frac{- 6xy^{3} - 6x^{4} }{y^{3}} \\\\\frac{d^{2} y}{dx^{2}} =  - \frac{- 6xy^{3} - 6x^{4} }{3y^{2}. y^{3}} \\\\\frac{d^{2} y}{dx^{2}} =  - \frac{- 2xy^{3} - 2x^{4} }{y^{5}} \\\\\frac{d^{2} y}{dx^{2}} =  - \frac{-2x (y^{3} + x^{3})}{y^{5}} \\\\\frac{d^{2} y}{dx^{2}} =  - \frac{-2x (1)}{y^{5}} \\\\\frac{d^{2} y}{dx^{2}} =  - \frac{-2x}{y^{5}}

3 0
3 years ago
AB ← → is tangent to circle O at point A. If m∠AOB = 55°, what is m∠ABO ?
AlladinOne [14]
A tangent forms a right angle with the centre of circle at the point it touches the circumference. i.e. OAB = 90 degrees
If AOB = 55 degrees, then ABO = 90 - 55 = 35 degrees
3 0
3 years ago
Read 2 more answers
Charles smith makes $9.75 an hour he works four hours on Monday six hours on Tuesday five hours on Wednesday five hours on Thurs
ladessa [460]
Simple. Multiple

Monday: 6x9.75
Tuesday &Wednesday: 5x9.75
Thursday & Friday: 7x9.75
4 0
3 years ago
Read 2 more answers
What is the coefficient of y in the expression 2 ⋅ 4 + 3y?
zvonat [6]
The coefficient of y in this expression is 3 
4 0
3 years ago
Read 2 more answers
Other questions:
  • Plz help:( <br> Which is adverb or a adjective
    6·2 answers
  • What is the solution to log2(2x^3-8)-2log2x=log2x?
    6·1 answer
  • Which of the following measuring instruments is used to test the quality of wire insulation?
    11·1 answer
  • 2. Mrs. Frederick is paid semimonthly.
    12·1 answer
  • How do you solve a/7+5/7=2/7
    15·1 answer
  • What is 5 2/7 rounded to the nearest whole number
    11·2 answers
  • 84 is 60% of what number?
    8·2 answers
  • One of the roots of the equation 3x^2+7x−q=0 is −5. Find the other root and q.
    13·1 answer
  • Pls help, it due ASAP.....pls show workings
    13·1 answer
  • Are the triangles similar
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!