Answer To: DPIT121 – Lab Exercise 3 Due: Week 4 lab In lab 3, you will continue on another iteration for the...
Aditya answered on Aug 05 2021
LabExercise3/build.xml
Builds, tests, and runs the project LabExercise3.
LabExercise3/build/classes/.netbeans_automatic_build
LabExercise3/build/classes/.netbeans_update_resources
LabExercise3/build/classes/main01/Address.class
package main01;
public synchronized class Address {
private int streetNum;
private String street;
private String suburb;
private String city;
public void Address(int, String, String, String);
public int getStreetNum();
public String getStreet();
public String getSuburb();
public String getCity();
public void setStreetNum(int);
public void setStreet(String);
public void setSuburb(String);
public void setCity(String);
public String toString();
}
LabExercise3/build/classes/main01/BusinessPlan.class
package main01;
public synchronized class BusinessPlan extends MobilePlan {
protected int numberOfEmployees;
protected int ABN;
public void BusinessPlan(String, int, MobilePhone, int, int, MyDate, int, int);
public int getNumberOfEmployees();
public int getABN();
public void setNumberOfEmployees(int);
public void setABN(int);
public void print();
public String toString();
public double calcPayment(int);
}
LabExercise3/build/classes/main01/Main01.class
package main01;
public synchronized class Main01 {
public void Main01();
public static void main(String[]);
public static void addPlan(User, MobilePlan);
}
LabExercise3/build/classes/main01/MobileCompany.class
package main01;
public synchronized class MobileCompany {
private String name;
private java.util.ArrayList users;
private String adminUsername;
private String adminPassword;
private int flatRate;
public void MobileCompany(String, java.util.ArrayList, String, String, int);
public String getName();
public java.util.ArrayList getUsers();
public String getAdminUsername();
public String getAdminPassword();
public int getFlatRate();
public void setName(String);
public void setUsers(java.util.ArrayList);
public void setAdminUsername(String);
public void setAdminPassword(String);
public void setFlatRate(int);
public boolean validateAdmin(String, String);
public boolean addUser(User);
public Boolean addUser(String, int, Address);
public User findUser(int);
public boolean addPlan(int, MobilePlan);
public MobilePlan findPlan(int, int);
public void printPlans(int);
public void print();
public String toString();
public boolean createPersonalPlan(int, String, int, MobilePhone, int, int, MyDate, String);
public boolean createBusinessPlan(int, String, int, MobilePhone, int, int, MyDate, int, int);
public double calcTotalPayments(int);
public double calcTotalPayments();
public boolean mobilePriceRise(int, double);
public void mobilePriceRise(double);
public java.util.ArrayList allPlans();
public java.util.ArrayList filterByMobileModel(int, String);
public java.util.ArrayList filterByExpiryDate(int, MyDate);
public java.util.ArrayList filterByMobileModel(String);
public java.util.ArrayList filterByExpiryDate(MyDate);
}
LabExercise3/build/classes/main01/MobilePhone.class
package main01;
public synchronized class MobilePhone {
private String model;
private mobileType type;
private int memorySize;
private double price;
public void MobilePhone(String, mobileType, int, double);
public String getModel();
public mobileType getType();
public int getMemorySize();
public double getPrice();
public void setModel(String);
public void setType(mobileType);
public void setMemorySize(int);
public void setPrice(double);
public void priceRise(double);
public void print();
public String toString();
}
LabExercise3/build/classes/main01/MobilePhone.rs
LabExercise3/build/classes/main01/MobilePlan.class
package main01;
public abstract synchronized class MobilePlan {
protected String userName;
protected int id;
protected MobilePhone handset;
protected int internetQuota;
protected int capLimit;
protected MyDate expiryDate;
public void MobilePlan(String, int, MobilePhone, int, int, MyDate);
public static java.util.ArrayList filterByExpiryDate(java.util.ArrayList, MyDate);
public String getUserName();
public int getId();
public MobilePhone getHandset();
public int getInternetQuota();
public int getCapLimit();
public MyDate getExpiryDate();
public void setHandSet(MobilePhone);
public void setInternetQuota(int);
public void setCapLimit(int);
public void setExpiryDate(MyDate);
public void setMobileModel(String);
public void setUserName(String);
public void print();
public String toString();
public abstract double calcPayment(int);
public static void printPlans(java.util.ArrayList);
public static double calcTotalPayments(java.util.ArrayList, int);
public void mobilePriceRise(double);
public static void mobilePriceRiseAll(java.util.ArrayList, double);
public static java.util.ArrayList filterByMobileModel(java.util.ArrayList, String);
}
LabExercise3/build/classes/main01/mobileType.class
package main01;
final synchronized enum mobileType {
public static final mobileType ANDRIOD;
public static final mobileType IOS;
public static final mobileType WINDOWS;
public static mobileType[] values();
public static mobileType valueOf(String);
private void mobileType(String, int);
static void ();
}
LabExercise3/build/classes/main01/MyDate.class
package main01;
public synchronized class MyDate {
protected int year;
protected int month;
protected int day;
public void MyDate(int, int, int);
public Boolean isExpired(MyDate);
public int getYear();
public int getMonth();
public int getDay();
public void setYear(int);
public void setMonth(int);
public void setDay(int);
public String toString();
}
LabExercise3/build/classes/main01/PersonalPlan.class
package main01;
public synchronized class PersonalPlan extends MobilePlan {
protected String city;
public void PersonalPlan(String, int, MobilePhone, int, int, MyDate, String);
public String getCity();
public void setCity(String);
public void print();
public String toString();
public double calcPayment(int);
}
LabExercise3/build/classes/main01/User.class
package main01;
public synchronized class User {
private String name;
private int userID;
private Address address;
private java.util.ArrayList plans;
public void User(String, int, Address);
public boolean createPersonalPlan(String, int, MobilePhone, int, int, MyDate, String);
boolean createBusinessPlan(String, int, MobilePhone, int, int, MyDate, int, int);
public java.util.ArrayList filterByExpiryDate(MyDate);
public String getName();
public int getUserID();
public Address getAddress();
public java.util.ArrayList getPlans();
public void setName(String);
public void setAddress(Address);
public void setCity(String);
public MobilePlan findPlan(int);
public boolean addPlan(MobilePlan);
public boolean addPlan1(java.util.ArrayList, MobilePlan);
public void print();
public String toString();
public void printPlans(int);
public double calcTotalPayments(int);
public void mobilePriceRiseAll(double);
public java.util.ArrayList filterByMobileModel(String);
}
LabExercise3/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
LabExercise3/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
No tests executed.
Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
...