@@ -0,0 +1,2087 @@
+package flowertest;%0A%0A/**%0A * Write a Java class, Flower, that has three instance variables of type String,%0A * int, and float, which respectively represent the name of the flower, its%0A * number of petals, and price. Your class must include a constructor method%0A * that initializes each variable to an appropriate value, and your class should%0A * include methods for setting the value of each type, and getting the value of%0A * each type.%0A *%0A * @author Khav%0A */%0A/**%0A * A simple Flower class%0A *%0A * @author Khav%0A */%0Aclass Flower %7B%0A%0A    private String name;%0A    private int num_of_petals;%0A    private int price;%0A%0A    /**%0A     * Default constructor to allow use of new command to create instance%0A     */%0A    public Flower() %7B%0A    %7D%0A%0A    /**%0A     * Construct a new Flower Instance%0A     *%0A     * @param name%0A     * @param num_of_petals%0A     * @param price%0A     */%0A    public Flower(String name, int num_of_petals, int price) %7B%0A        this.name = name; //name of flower%0A        this.num_of_petals = num_of_petals; // number of petals%0A        this.price = price; // price of the flower%0A    %7D%0A    //update methods%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public void setPetalCount(int num_of_petals) %7B%0A        this.num_of_petals = num_of_petals;%0A    %7D%0A%0A    public void setPrice(int price) %7B%0A        this.price = price;%0A    %7D%0A    //accessor methods%0A%0A    public String getName() %7B%0A        return this.name;%0A    %7D%0A%0A    public int getPetalCount() %7B%0A        return this.num_of_petals;%0A    %7D%0A%0A    public int getPrice() %7B%0A        return this.price;%0A    %7D%0A%7D%0A%0Apublic class FlowerTest %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Flower f1 = new Flower();%0A        f1.setName(%22Rose%22);%0A        f1.setPrice(2);%0A        f1.setPetalCount(5);%0A%0A        System.out.println(f1.getName());%0A        System.out.println(f1.getPrice());%0A        System.out.println(f1.getPetalCount());%0A%0A        Flower f2 = new Flower(%22Lily%22, 10, 4);%0A%0A        System.out.println(f2.getName());%0A        System.out.println(f2.getPrice());%0A        System.out.println(f2.getPetalCount());%0A%0A    %7D%0A%0A%7D%0A

Create Flower.java