Question: Write a java program for following classes: a. A NCT teacher wants to calculate the average of a student. Declare a class Student with id,
Write a java program for following classes: a. A NCT teacher wants to calculate the average of a student. Declare a class Student with id, name, markl and mark2 variables. Using the getdata() function get input for the student class. Declare another class Level with level variable and getlevel() function to get input for the level and putdata() to display the student information. Declare a class called Average and find the average mark of the student. With help of inheritance try to find the average mark of the student. [3.5 Marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
