please answer these two assignments every one related to each other for me before Tuseday I answer the first part please continue to me?? public abstract class Person implements Comparable { private int CivilNumber; private String Name; private double Salary; public Person(){ } public Person(int CivilNumber,String Name,double Salary){ this.CivilNumber=CivilNumber; this.Name=Name; this.Salary=Salary; } public int getCivilNumber(){ return CivilNumber; } public void setCivilNumber(int CivilNumber){ this.CivilNumber=CivilNumber; } public String getName(){ return Name; } public void setName(String Name){ this.Name=Name; } public double getSalary(){ return Salary; } public void setSalary(double Salary){ this.Salary=Salary; } public String toString(){ return Grade(Salary); } public String Grade(double Salary) { if (Salary>1500) return "A"; else if (Salary >700) return "B"; else return "C"; } public String Convert(String Name){ return Convert(Name); } } public abstract class Volunteer extends Person implements Comparable{ double Volunteerno; public String Grade(double Salary) { Salary =0.0; return " No salary for the volunteers "; } public String toString(){ return super.toString(); } } public abstract class Employee extends Person implements Comparable{ double Employeeno; public String Grade(double Salary) { if (Salary>1500) return "A"; else if (Salary >700) return "B"; else return "C"; } public int bouns(String Grade){ if (Grade == "A") return 100 ; else if(Grade == "B") return 50; else return 25; } public String toString(){ return super.toString(); } } SFDV2103 â?? Java Programming Fall, 2012 Term Project Assignment 3 (5%) Due Date: (Wednesday) December 26, 2012 Overview: As specified in the course outline this course will include a semester-long project divided into four parts. In each part you will complete a given a task. In assignment 3, you are asked to make changes in the existing class. Problem: Open the class â??Personâ?? you created in Assignment2 and modify the class for following issues: â?¢ Modify the Person class, which will implement the comparable interface. â?¢ Create two subclasses Volunteer and Employee. â?¢ In Volunteer class has a variable Volunteerno and override the Grade() method by assigning salary as 0 and print the message â??No salary for the volunteers.â?? â?¢ In Employee class has a variable Employeeno override the Grade() method by calculating the salary by adding bonus. If the grade is â??Aâ?? then bonus = 100, â??Bâ?? then bonus = 50 and â??Câ?? then bonus = 25. â?¢ Invoke toString() method from these sub classes also which will display both super and sub class details. â?¢ Write a Test program to check all above mentioned methods by invoking it. It should display all possible outputs. Also create two objects for Person class and compare these two objects and display which object is greater. Draw a UML diagram for the above. You must submit the source code to your teacher by printing the programs from eclipse not from word file. That program should show the results also. Also you will demonstrate your work by running your program in the lab. Also upload the final version of your program in to black board. Note: Cheating will not be accepted, Marks will be reduced for all the members of that project group based on the percentage of cheating. SFDV2103 â?? Java Programming Fall, 2012 Term Project Assignment 4 (5%) Due Date: (Wednesday) December 26, 2012 Overview: As specified in the course outline this course will include a semester-long project divided into four parts. In each part you will complete a given a task. Problem: â?¢ Modify the project to create user interface. Your program should let the user to enter information of your project from a text field and should display all the computed values in the previous assignments in a text area. â?¢ Add events to display new balance whenever there is a "withdraw" or "credit". â?¢ Add proper classes to change the color and font of the components and use proper screen layout models. Your frames should look clear and display all the details of the project. â?¢ Draw the UML diagram that involves the new classes in this project. You must submit the source code to your teacher by printing the programs from eclipse not from word file. That program should show the results also. Also you will demonstrate your work by running your program in the lab. Also upload the final version of your program in to black board. Note: Cheating will not be accepted, Marks will be reduced for all the members of that project group based on the percentage of cheating. please help me
Ads