Consider the following class Certification with following data members Id (int), name (String) , hours(int), level (String), costPerHr (double). You are required to do the following Provide a class StudentCertification that extends Certification . This class has an additional data member rebate (double) o Override the calculateFee method so that the total cost is calculated by getting the total for the training hours @costPerHr and applying the rebate (%). E.g. if the costPerHr is 200 and 50 hours training and 0.2 rebate then the calculateFee should return 10000 – 0.2 *10000 = 8000 Provide another sub class ProfessionalCertification that extends Certification. This class no additional data member. o It overrides the calculateFee method so that the total cost is returned as the product of hours and cost per hour plus 15% tax of the total hours cost. Also the ProfessionalCertification implements the Extendible Interface. You will also have to provide the implementation of method extend(int duration). For this you need to add the duration to the training hours of the certification The correctness of your code will be checked against a main program that will be provided along with the expected output
Consider the following class Certification with following data members Id (int), name (String) , hours(int), level (String), costPerHr (double). You are required to do the following Provide a class StudentCertification that extends Certification . This class has an additional data member rebate (double) o Override the calculateFee method so that the total cost is calculated by getting the total for the training hours @costPerHr and applying the rebate (%). E.g. if the costPerHr is 200 and 50 hours training and 0.2 rebate then the calculateFee should return 10000 – 0.2 *10000 = 8000 Provide another sub class ProfessionalCertification that extends Certification. This class no additional data member. o It overrides the calculateFee method so that the total cost is returned as the product of hours and cost per hour plus 15% tax of the total hours cost.
Also the ProfessionalCertification implements the Extendible Interface. You will also have to provide the implementation of method extend(int duration). For this you need to add the duration to the training hours of the certification The correctness of your code will be checked against a main program that will be provided along with the expected output
Step by step
Solved in 5 steps with 5 images