Question: in java and screenshoot output Assignment Student Explanation: dept will be same for all students read is to enter the name and marks from keyboard
in java and screenshoot output

Assignment Student Explanation: dept will be same for all students read is to enter the name and marks from keyboard +dept: String +total: int -name String markfS]: int + read void + getmark (): int + getname: Strin Teacher Explanation: sumMarks is to find the sum of the student marks and assign it in student total getsumMark is to return the total of student show is to print all the student information ( department-name- marks - and the total) st: Student +sumMarks (Student st): void +getsumMark(): int +show ()void Explanation: V check is to check the total of the student Promotion -st: Student if the total less than 60 and more than or equal 55, increase the total by 5 otherwise, leave the total as it is o o + check (Student s) void Main class Enter the information of one student Teacher will find the total of this student Then Promotion will be used to check this total Finally, the Teacher will print all the student information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
