Question: Write the following to complete the Student class a. A default constructor b. The mutator and accessor methods for all data members c. A
Write the following to complete the Student class a. A default constructor b. The mutator and accessor methods for all data members c. A toString method that returns a String containing all data members. d. A processor method named calculate FinalMarks(). This method will calculate and return final marks of student based on the following formula. Final marks = test (30%) + assignment (20%) + final (50%) e. Write a main method that create four objects of student and assigned each of them with values for each data members. Then display the student name, student ID and final marks for all the students objects, public class Student { *** private String studentName; private String student ID; private String program; // e.g. CS233 private double test; private double assignment; private double final; Program 1.3
Step by Step Solution
There are 3 Steps involved in it
To complete the Student class ... View full answer
Get step-by-step solutions from verified subject matter experts
