Java programming language 1.Create a package named P1 and another package named P2.2.Create an Interface (in the name of Human) inside (P1) (according to the following:•A constant (Type) takes...

Java programming language 1.Create a package named P1 and another package named P2. 2.Create an Interface (in the name of Human) inside (P1) (according to the following: •A constant (Type) takes the value mammal. •The Print function has no parameters and does not return a value. 3.Create a Student Class (inside P1) and apply the Human interface (according to the following: •Variables: o(Name): the name. and (No): the number o[Marks]: A 5-digit matrix representing student marks in five subjects. •Functions: oA construct that reads from the keyboard the student's name, number and five marks oAnother structure that receives the values of local variables and assigns them. oSetMarks(): reads 5 marks from the keyboard and assigns them to the matrix (Marks).This function is without an instance (Instance or Object. oPrint(): prints all student variables and constants. oGetMax(): It is not inherited and prints the highest mark for the student. 4.Create a Class (GraduateStudent) inside (P2) according to the following: •It inherits from the class (Student) all its variables and functions. •Variables: oAvg: Modifier. oStatus: Status is of text type. It can be used without making an instance (Instance or Object). •Functions: oA construct that only sets initial values for local variables. o(Print): It is not inherited and it prints the student's grade point average and status. oPrintAllInfo(): Calls the Print function of the father as well as the local Print function. oGetAvg() function: Calculates and returns the average value. It throws an exception if the average is less than 35. oOutput function: Receives a file name and stores all student data in a file. oExplain the concept of (Overload) through the function (Output) so that it does not receive transactions and displays all dataThe student is on the screen through a window. main function: Create an object from the student. Call all its functions. Create a graduate object. Call all its functions.
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here