SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 3 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 05 Jan 2018 My Price 10.00

previous solution implement an option to save the plants

Using your previous solution implement an option to save the plants to a file. You must also be able to load the saved information from a previously saved file.  All previously required actions are still required (add, remove, display, filter, search etc)

You are allowed to use any file saving and loading methods.

You MUST submit a sample file that can be loaded into your program without any changes (except the file path)

  • Submit 6 files: Driver.java, flower.java, fungus.java, plant.java, weed.java and the example load.txt.

  • public class Fungus extends Plant {
       
        private String Color;
        private String Poisonous;
       
        public Fungus() {
           
        }
       
        public String getColor() {
            return Color;
        }
       
        public void setColor(String Color) {
            this.Color = Color;
        }
       
        public String getPoisonous() {
            return Poisonous;
        }
       
        public void setPoisonous(String Poisonous) {
            this.Poisonous = Poisonous;
        }
       
        public String toString() {

            return super.toString() + "\n Color: " + Color + "\n Poisonous: " + Poisonous;
        }
       
    public class Plant {
       
        private String Name;
        private String ID;

        public String getName() {
            return Name;
        }
       
        public void setName(String Name) {
            this.Name = Name;
        }
       
        public String getID() {
            return ID;       
        }
       
        public void setID(String ID) {
            this.ID = ID;
        }
       
        public String toString() {
            return " Name: " + Name + "\n ID: " + ID;
        }
       
       
    }


    public class Weed extends Plant {
       
        private String Color;
        private String Poisonous;
        private String Edible;
        private String Medicinal;
       
        public Weed() {       
        }
       
        public String getColor() {
            return Color;
        }
       
        public void setColor(String Color) {
            this.Color = Color;
        }
       
        public String getPoisonous() {
            return Poisonous;
        }
       
        public void setPoisonous(String Poisonous) {
            this.Poisonous = Poisonous;
        }
       
        public String getEdible() {
            return Edible;
        }
       
        public void setEdible(String Edible) {
            this.Edible = Edible;
        }
       
        public String getMedicinal() {
            return Medicinal;
        }
       
        public void setMedicinal(String Medicinal) {
            this.Medicinal = Medicinal;
        }
       
        public String toString() {
            //super.toString();
            return super.toString() + "\n Color: " + Color + "\n Poisonous: " + Poisonous + "\n Edible:" +
                    Edible + "\n Medicinal: " + Medicinal;
        }
       
    }
    }

Answers

(5)
Status NEW Posted 05 Jan 2018 11:01 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)