Question: Java help ubitle Subtle E e Em. Emphasis Intese E.. Strong uote Intese Paragragh Member variables Constants: SLOW, MEDIUM, FAST with value 1, 2,3 private

Java help  Java help ubitle Subtle E e Em. Emphasis Intese E.. Strong
uote Intese Paragragh Member variables Constants: SLOW, MEDIUM, FAST with value 1,

ubitle Subtle E e Em. Emphasis Intese E.. Strong uote Intese Paragragh Member variables Constants: SLOW, MEDIUM, FAST with value 1, 2,3 private int data field name speed (default is SLOW) private boolean data field name on that specifies if the fan is on (default is false) private double data field name radius (default is 5) private Color data field name color (default is blue) Default public Fan(0 public Fanint s, Color c) public Fan(int s, double r, Color c) (s is speed, r is the value for radius and c is the value for color) The accessor and mutator methods for all four data fields A method named toStringl) that returns string description of the fan: If the fan is on, the method returns the fan speed, color, and radius in one string. If the fan is off, the method returns fan color and radius along with "fan is off Constructors Methods You need to implement a Fan Driver class. In this Test class, you need to create two Fan objects using two constructors. Create object Fan fan1 using default constructor. Display the data sheet of this fan1 by info with method toString). Request user's input for all data fields, and redisplay data sheet of fan1 by compiling the message with method tostrinel). Request user's input for speed and color. Greate second object fan2 using second contructor, Request user's input for radius. Pass the value of user's input to the object fan2, and redisplay data sheet info of fan2 by invoking their toString method For Color class, you may need java.awt Color package. All colors are static, use Color black format to assign value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!