Question: solve asap please!!! netbeans java code Assignment on interface Create a project with name Interface Project, and then write a Java application to: 1. Define

Assignment on interface Create a project with name Interface Project, and then write a Java application to: 1. Define the class Person and Student and the interface Student Interface as the following class UML diagram: Person -name: String age: int erinterface Student Interface *constructor setters *getters *printInfo(): void kind (): String is Equal(o: Object) boolean getLetterGrade (a: double):String is-a Student -id String -av: double -major: String constructor setters getters *printInfo(): void - kind(): String Note: . printInfo() method implements as follows: in Person class: print the information of the Person (name and age) in Student class print the information of the Student (name, age, id, major, average and the letter Grade). kind() method implements as follows: in Person class return "I'm a Person" kind() method implements as follows: in Student class return "I'm a Student" . . . isEqual method implements as follows: . compares between two Students and returns true if the two students have the same average and major and otherwise returns false. getLetterGrade() method implements as follows: if average between 0 and 49 returns F if average between 50 and 59 returns E if average between 60 and 69 returns D if average between 70 and 79 returns if average between 80 and 89 returns B if average between 90 and 100 returns A otherwise returns "invalid average". 2. In the main method do the following: - . . . . Create an object of type Student with name Ahmad Ali", age =18, id= *201510122", major is "SE" and av 90.3. Print the information of this Student object. Create an object of type Student with name "Malik Anas", age =20, ida "201310122", major is "CS" and av 80.3. Print the information of this Student object. Change the age of the second student to any age. Name Ahmad All Print the information after updating. Age : 18 id 201510122 Print the kind of the first object. Mejor SE Average 00.3 Compare between the two previous Letter Grade 1 A Name Malek Angs students Age 20 id 201310122 then print they are equal, otherwise print Major CS they are not equal Average 80.3 Latter Grade Name Malek Anos Age 21 id 201310122 Mejor CS Average 80.3 Latter Grade I'm a Student They are not Equal BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
