I need it asap

1 answer below »
Answered Same DayAug 31, 2021

Answer To: I need it asap

Mohd answered on Sep 02 2021
158 Votes
completed solution/after EA class diagram.PNG
completed solution/before EA class diagram.PNG
completed solution/Refracted Code/.classpath

    
    
    
completed solution/Refracted Code/.project

     Refracted Code
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
    
completed solution/Refracted Code/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
completed solution/Refracted Code/bin/assignment1_201917/Animal.class
package assignment1_201917;
public synchronized class Animal {
public Veterinarian assignedVeterinarian;
private static int pIdNo;
private String name;
private String identifier;
public InsuranceType animalType;
private String preferredVeterinarian;
private String insuredHealthFundNo;
private int hoursTreated;
static void ();
public final String getName();
public void Animal();
public void Animal(String, int, int, String);
public void Animal(String, int, InsuranceType, String, String, int, String);
public boolean assignVeterinarian(java.util.ArrayList);
public String mvToANewVet(InsuranceType);
public String mv(InsuranceType);
public void SetIdentifier();
public String toString();
}
completed solution/Refracted Code/bin/assignment1_201917/Clinic.class
package assignment1_201917;
public synchronized class Clinic {
private java.util.ArrayList listOfVeterinarians;
private java.util.ArrayList listOfAnimals;
private String inputFileName;
public void Clinic();
public final String run();
}
completed solution/Refracted Code/bin/assignment1_201917/InsuranceType.class
package assignment1_201917;
public final synchronized enum InsuranceType {
public static final InsuranceType Uninsured;
public static final InsuranceType Insured;
static void ();
private void InsuranceType(String, int);
public static InsuranceType[] values();
public static InsuranceType valueOf(String);
}
completed solution/Refracted Code/bin/assignment1_201917/MainDriverClass.class
package assignment1_201917;
public synchronized class MainDriverClass {
public static final String OUTPUT_FILE = MyOutput.txt;
public static final String TEST_FILE = MyTest.txt;
public void MainDriverClass();
public static void main(String[]);
public void files();
public void printOutput(String);
}
completed solution/Refracted Code/bin/assignment1_201917/Veterinarian.class
package assignment1_201917;
public synchronized class Veterinarian {
public java.util.ArrayList listOfAnimals;
public int maxNumOfAnimals;
private double hourlyRate;
private static int vetIdNo;
public String name;
private String identifier;
static void ();
public boolean HasAnimals();
public void Veterinarian();
public void Veterinarian(String, int, int, String);
public void Veterinarian(String, int, int, String, double);
public String toString();
public double getHourlyRate();
public String printListOfAnimals();
public void setIdentifier();
}
completed solution/Refracted Code/MyInput.csv
Veterinarian,Ben Casey,32,3,Small Animals,,
Veterinarian,Hawkeye Pierce,47,3,Large Animals,,
Veterinarian,Doogie Howser,22,1,Horses,,
InsuredAnimal,Fred Bear,2,Ben Casey,HCF236788,10, Cockerspaniel
Animal,Betty Bird,3,7,Budgerigar,,
InsuredAnimal,Bella Plant,3,Ben Casey,HCF265123,23, Rabbit
InsuredAnimal,Dagwood Dog,8,Doogie Howser,HCF265988,2, Labrador
InsuredAnimal,Ernie,2,Ben Casey,HCF134231,1, Guinea Pig
Animal,Tinkerbell,4,1,Siamese cat,,
Animal,Slinky,1,1,Blue Tongue Lizard,,
InsuredAnimal,Mickey Mouse,5,Ben Casey,HCF234511,1, Mouse
completed solution/Refracted Code/MyOutput.txt
___________________
List of registered veterinarians
___________________
*******************
Dr Ben Casey
     id number: V1000
     Max Number of Patients: 3
No animals assigned to this veterinarian as yet
*******************
Dr Hawkeye Pierce
     id number: V1001
     Max Number of Patients: 3
No animals assigned to this veterinarian as yet
*******************
Dr Doogie Howser
     id number: V1002
     Max Number of Patients: 1
No animals assigned to this veterinarian as yet
___________________
List of animals before veterinarians assigned
___________________
Insured Animal - Fred Bear
     Identifier: P100000
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF236788
     Assigned Veterinarian: not assigned as yet
Uninsured Animal - Betty Bird
     Identifier: P100001
     Assigned Veterinarian: not assigned as yet
Insured Animal - Bella Plant
     Identifier: P100002
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF265123
     Assigned Veterinarian: not assigned as yet
Insured Animal - Dagwood Dog
     Identifier: P100003
     Preferred Veterinarian: Doogie Howser
     Insured Health Fund Number: HCF265988
     Assigned Veterinarian: not assigned as yet
Insured Animal - Ernie
     Identifier: P100004
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF134231
     Assigned Veterinarian: not assigned as yet
Uninsured Animal - Tinkerbell
     Identifier: P100005
     Assigned Veterinarian: not assigned as yet
Uninsured Animal - Slinky
     Identifier: P100006
     Assigned Veterinarian: not assigned as yet
Insured Animal - Mickey Mouse
     Identifier: P100007
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF234511
     Assigned Veterinarian: not assigned as yet
___________________
Assigning Veterinarians to Animals
___________________
********************************************************************
Not yet assigned animal Fred Bear- No available veterinarians
********************************************************************
Will need to reassign Insured Animal Fred Bear to a different clinic
Assigning veterinarian Ben Casey to Betty Bird
********************************************************************
Not yet assigned animal Bella Plant- No available veterinarians
********************************************************************
Will need to reassign Insured Animal Bella Plant to a different clinic
********************************************************************
Not yet assigned animal Dagwood Dog- No available veterinarians
********************************************************************
Will need to reassign Insured Animal Dagwood Dog to a different clinic
********************************************************************
Not yet assigned animal Ernie- No available veterinarians
********************************************************************
Will need to reassign Insured Animal Ernie to a different clinic
Assigning veterinarian Ben Casey to Tinkerbell
Assigning veterinarian Ben Casey to Slinky
********************************************************************
Not yet assigned animal Mickey Mouse- No available veterinarians
********************************************************************
Will need to reassign Insured Animal Mickey Mouse to a different clinic
___________________
List of animals after veterinarians assigned
___________________
Insured Animal - Fred Bear
     Identifier: P100000
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF236788
     Assigned Veterinarian: not assigned as yet
Uninsured Animal - Betty Bird
     Identifier: P100001
     Assigned Veterinarian: Ben Casey
     Fee for 7 hours consultation = $700.0
Insured Animal - Bella Plant
     Identifier: P100002
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF265123
     Assigned Veterinarian: not assigned as yet
Insured Animal - Dagwood Dog
     Identifier: P100003
     Preferred Veterinarian: Doogie Howser
     Insured Health Fund Number: HCF265988
     Assigned Veterinarian: not assigned as yet
Insured Animal - Ernie
     Identifier: P100004
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF134231
     Assigned Veterinarian: not assigned as yet
Uninsured Animal - Tinkerbell
     Identifier: P100005
     Assigned Veterinarian: Ben Casey
     Fee for 1 hours consultation = $100.0
Uninsured Animal - Slinky
     Identifier: P100006
     Assigned Veterinarian: Ben Casey
     Fee for 1 hours consultation = $100.0
Insured Animal - Mickey Mouse
     Identifier: P100007
     Preferred Veterinarian: Ben Casey
     Insured Health Fund Number: HCF234511
     Assigned Veterinarian: not assigned as yet
___________________
List of veterinarians after animals assigned
___________________
*******************
Dr Ben Casey
     id number: V1000
     Max Number of Patients: 3
List of Animals registered for Dr Ben Casey
Uninsured Animal - Betty Bird
     Identifier: P100001
     Assigned Veterinarian: Ben Casey
     Fee for 7 hours consultation = $700.0
Uninsured Animal - Tinkerbell
     Identifier: P100005
     Assigned Veterinarian: Ben Casey
     Fee for 1 hours consultation = $100.0
Uninsured Animal - Slinky
     Identifier: P100006
     Assigned Veterinarian: Ben Casey
     Fee for 1 hours consultation = $100.0
*******************
Dr Hawkeye Pierce
     id number: V1001
     Max Number of Patients: 3
No animals assigned to this veterinarian as yet
*******************
Dr Doogie Howser
     id number: V1002
     Max Number of Patients: 1
No animals assigned to this veterinarian as yet
completed solution/Refracted Code/src/assignment1_201917/Animal.java
completed solution/Refracted...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here