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: o A construct that reads from the keyboard the student's name, number and five marks o Another structure that receives the values of local variables and assigns them. o SetMarks(): reads 5 marks from the keyboard and assigns them to the matrix (Marks).This function is without an instance (Instance or Object. o Print(): prints all student variables and constants. o GetMax(): 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: o Avg: Modifier. o Status: Status is of text type. It can be used without making an instance (Instance or Object). • Functions: o A 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. o PrintAllInfo(): Calls the Print function of the father as well as the local Print function. o GetAvg() function: Calculates and returns the average value. It throws an exception if the average is less than 35. o Output function: Receives a file name and stores all student data in a file. o Explain 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.
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: o A construct that reads from the keyboard the student's name, number and five marks o Another structure that receives the values of local variables and assigns them. o SetMarks(): reads 5 marks from the keyboard and assigns them to the matrix (Marks).This function is without an instance (Instance or Object. o Print(): prints all student variables and constants. o GetMax(): 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: o Avg: Modifier. o Status: Status is of text type. It can be used without making an instance (Instance or Object). • Functions: o A 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. o PrintAllInfo(): Calls the Print function of the father as well as the local Print function. o GetAvg() function: Calculates and returns the average value. It throws an exception if the average is less than 35. o Output function: Receives a file name and stores all student data in a file. o Explain 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.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
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:
o A construct that reads from the keyboard the student's name, number and five marks
o Another structure that receives the values of local variables and assigns them.
o SetMarks(): reads 5 marks from the keyboard and assigns them to the matrix (Marks).This function is without an instance (Instance or Object.
o Print(): prints all student variables and constants.
o GetMax(): 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:
o Avg: Modifier.
o Status: Status is of text type. It can be used without making an instance (Instance or Object).
• Functions:
o A 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.
o PrintAllInfo(): Calls the Print function of the father as well as the local Print function.
o GetAvg() function: Calculates and returns the average value. It throws an exception if the average is less than 35.
o Output function: Receives a file name and stores all student data in a file.
o Explain 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY