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 heart is _______ to the arm and _______ to the cranial cavity.
Radda [10]

Explanation:

The heart is (lateral) to the arm and (superior) to the cranial cavity.

8 0
3 years ago
Eleanor takes several high-cost prescription drugs. She would like to enroll in a standalone Part D prescription drug plan that
andriy [413]

Answer:

A Medicare Prescription Drug Plan.  

Explanation:

This type of plan focuses on providing a standalone drug coverage to Medicare plans that an individual already subscribes to. Each Medicare Plan encompasses these four parts: Part A (Hospital Insurance) and Part B (Medical Insurance) through Part C (Medicare Advantage Plans), and Part D (Prescription Drugs).  

The Medicare Prescription Drug Plan is available for individuals who have subscribed to the original Medicare plan (either or both Part A and B), the Medicare Medical Savings Account Plan, and some types of Medicare Cost Plan and Medicate Private-Fee-For-Services Plans.  

Individuals who have Part C are covered with Part D, however, Part C includes other medical services not covered by Part A and B such as vision, hearing, and dental. Thus, since Eleanor only wants a plan that covers prescription drug only, she should add the Medicare Prescription Drug Plan to her current Medicare package.  

4 0
3 years ago
Read 2 more answers
Louis Pasteur said, "In the field of observation, chance favors only the prepared mind." What did he
Mariulka [41]

Scientists should constantly make observations about the world around them, and think about different causes and contexts for their

observations.

<em>Hope</em><em> </em><em>this</em><em> </em><em>helps</em><em> </em><em>:</em><em>)</em>

3 0
2 years ago
Read 2 more answers
A nurse has just received change-of-shift report for a group of clients. Which of the following actions should the nurse take to
aksik [14]
What are the choices, please?
5 0
3 years ago
Why is the right to refuse health care important?
Licemer1 [7]

Answer:

They allowed to refuse only if they understand their medical situation and the risks and benefits they are assuming.

Hope it helps!!

8 0
3 years ago
Other questions:
  • Define the different acid base balances and explain how the changes in pH, pCO2 and bicarbonate levels affect the body.
    10·1 answer
  • An individual who is deficient in this nutrient is likely to present with severe edema: A. proteins B. carbohydrates C. fats D.
    7·1 answer
  • Patient with known hepatitis b seen in clinic complaining of joint pain, loss appetite, nausea and vomiting, and weakness and fa
    12·1 answer
  • Cancer
    13·2 answers
  • Based on your understanding of the scenario, why was the claim rejected? A )The claim was submitted for the wrong patient. B) IC
    5·2 answers
  • The drug dispensed to the patient is Combivir. The other technician working with you does not want to wait on the patient for fe
    13·1 answer
  • A gamekeeper's or skier's thumb is a common injury that involves a sprain of the ___________ of the thumb metacarpophalangeal jo
    14·1 answer
  • What is the possible etiology for neurocognitive decline in a client who had a recent fracture of a femur bone
    7·1 answer
  • A nurse manager is teaching the staff about professional negligence and malpractice. Which criteria that establishes malpractice
    7·1 answer
  • what professional organization in the united states is responsible for standards of care for babies from birth to 15 months
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!