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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!