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
VashaNatasha [74]
3 years ago
8

Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...)

Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn the item on or off). Be sure you demonstrate your class works properly by constructing an instance of it and calling your method.
Medicine
1 answer:
jeyben [28]3 years ago
7 0

Answer:

public class Fan {

/** Main method */

public static void main(String[] args) {

 final int SLOW = 1;  // Fan speed slow

 final int MEDIUM = 2; // Fan speed medium

 final int FAST = 3;  // Fan speed fast

 // Create two Fan objects

 Fan fan1 = new Fan();

 Fan fan2 = new Fan();

 

 fan1.setSpeed(FAST);

 fan1.setRadius(10);

 fan1.setColor("yellow");

 fan1.turnOn();

 

 fan2.setSpeed(MEDIUM);

 fan2.setRadius(5);

 fan2.setColor("blue");

 fan2.turnOff();

 System.out.println(fan1.toString());

 System.out.println(fan2.toString());

}

}

You might be interested in
The aorta is the most muscular and largest artery in the circulatory system. Its structure is directly related to its function o
Ghella [55]

Answer:

delivering a large volume of high-pressure blood to the body.

                                     or in my words

transporting a large capacity of blood to the whole body.

Explanation:

8 0
3 years ago
Because the patient seems disoriented, should Theresa even trust what the patient is reporting?
OverLord2011 [107]

Answer:

yes

Explanation:

if the patient is crazy and scared and you see it turthfully and its not a lie yes the doctor theresa trust it if the patient wasnt like why she came then for no use

4 0
2 years ago
Read 2 more answers
Visual perception is greatly dependent on experience.<br> a. True <br> b. False
dolphi86 [110]

Answer:

TRUE

Explanation:

Visual perception or vision is described as the ability of the brain of an individual to elucidate or interpret the light reflected from the objects in the surrounding environment.

According to the German physician and physicist, Hermann von Helmholtz, the vision or the visual perception is the result of the ability of an individual to make conclusions and assumptions from the incomplete insufficient information which is based upon past experiences.

3 0
3 years ago
80 POINTS PLEASE ANSWER!!!! A team of scientists in Canada recently worked on a case where a drug company was selling medicines
stellarik [79]
The answer is
forensics
3 0
3 years ago
Read 2 more answers
1. The bony ridge that separates the scapula into two uneven parts is called the:
Lisa [10]

Answer: Scapular spine.

Explanation:

The spine is a bony prominence which protrudes from the dorsal surface of the scapula. It separates this dorsal surface into two uneven compartments: a supraspinal fossa, and a substantially larger infraspinal fossa.

5 0
3 years ago
Other questions:
  • Sam is studying how children respond to a new intervention for learning math and if it helps them later. She decides to follow t
    8·1 answer
  • A couple, Jack and Jill, are both deaf, and each has one parent who also is deaf. Jack and Jill have 8 children: 6 boys and 2 gi
    14·1 answer
  • Which warning signs cause Eric to believe Natalie needs help for an eating disorder? Check all that apply.
    8·2 answers
  • Type the correct answer in the box. Spell the word correctly. What type of health screening would this patient most likely recei
    12·2 answers
  • A 30-year-old woman complaining of tiredness was seen by her physician. A serum sample was collected at 2 pm. The following resu
    8·1 answer
  • free brainlyiestfree brainlyiestfree brainlyiestfree brainlyiestfree brainlyiestfree brainlyiestfree brainlyiestfree brainlyiest
    7·2 answers
  • After the onset of an autoimmune disease, Jesse's doctor determines that he has suffered damage to his adrenal glands. The docto
    5·1 answer
  • Which of the following compounds would be required to be prepared in a biological safety cabinet (BSC)
    11·1 answer
  • Chronic obstructive pulmonary disease (COPD) is a combination of disease processes. What are these disease processes
    7·2 answers
  • During an instruction session on breast self-examination, the nurse would instruct a client to perform the exam at which time
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!