Question: java source files. Continue from the previous Lab Exercise, add at least two more classes related to the class you designed in Lab Exercise 4.

java

java source files. Continue from the previous Lab Exercise, add at least

two more classes related to the class you designed in Lab Exercise

4. Include at least three instance variables, one static variable, and two

instance methods and one static method in each class design Create the

UML diagram, UMTemplateClassRe.docx (download the template file) Implement the (class_name].java file Write

source files. Continue from the previous Lab Exercise, add at least two more classes related to the class you designed in Lab Exercise 4. Include at least three instance variables, one static variable, and two instance methods and one static method in each class design Create the UML diagram, UMTemplateClassRe.docx (download the template file) Implement the (class_name].java file Write a driver function (the main function) in the (class_name].java file to create at least one object and invoke all methods you created. . . . LINAL ne internet Call Collal viruses. Unless your Bottle - Color : String - Volume : double - holdingWater: double + bottle(String, double, double); + getColor(): String; + getVolume():double; + getHoldiingWater(): double; + getDrinkWater(double): void; + getFilling Water('double): void; + getEmptyBottle(): void; 7/The program is to demonstrate a water bottle public class Bottle { private String color; private double volume; // in liters private double holdingWater; //in liters Bottle(String color, double volume, double holdingWat this.color = color; this.volume = volume; //filling bottle till its volume if (holdingWater > volume) holdingWater = volume; else this.holdingWater = holdingWater; public String getColor() { return color; public double getVolume() { return volume; Bottle - Notepad le Edit Format View Help public String getColor() { return color; public double getVolume() { return volume; public double getHoldingWater() { return holdingWater; //drinking water mechanism public void drinkwater(double amount) { double temp = holdingWater - amount; // when not enough water present if (temp volume) holdingWater = volume; else this.holdingWater = holdingWater; public String getColor() { return color; public double getVolume() { return volume; Bottle - Notepad le Edit Format View Help public String getColor() { return color; public double getVolume() { return volume; public double getHoldingWater() { return holdingWater; //drinking water mechanism public void drinkwater(double amount) { double temp = holdingWater - amount; // when not enough water present if (temp

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!