Question: Do in Java. Please proof my code and make it compile. My code: package demo; public class FinalStudent { int STIPEND; int studentId; int aggregateMarks;

Do in Java. Please proof my code and make it compile.

Do in Java. Please proof my code and make it compile. My

code: package demo; public class FinalStudent { int STIPEND; int studentId; int

aggregateMarks; double calculateTotalStipend; private static int bonusStipend1 = 10; private static int

My code:

package demo;

public class FinalStudent { int STIPEND; int studentId; int aggregateMarks; double calculateTotalStipend; private static int bonusStipend1 = 10; private static int bonusStipend2 = 15; private static int bonusStipend3 = 20; this.STIPEND = STIPEND; this.studentId = studentId; this.aggregateMarks = aggregateMarks; public getSTIPEND = int STIPEND(){ return STIPEND; } public void setSTIPEND(int STIPEND) { this.STIPEND; } public getStudentId = int studentId() { return studentId; } public void setStudentId(int studentID) { this.studentId; } public getAggregateMarks = int aggregateMarks() { return aggregateMarks; }

public void setAggregateMarks = (int aggregateMarks){ this.aggregateMasks; } if(aggregateMarks >= 85 && aggregateMarks = 90 && aggregateMarks = 95 && aggregateMarks

class Tester {

public static void main(String[] args) { Student student1 = new Student(); student1.setStudentId(1212); student1.setAggregateMarks(93);

double totalStipend = student1.calculateTotalStipend(); System.out.println("The final stipend of " + student1.getStudentId()+" is $" + totalStipend);

Student student2 = new Student(); student2.setStudentId(1222); student2.setAggregateMarks(84);

totalStipend = student2.calculateTotalStipend(); System.out.println("The final stipend of " + student2.getStudentId()+" is $" + totalStipend); } } }

Problem Statement An educational institution provides stipends for post-graduate students every year. For calculating the stipend, the institution has fixed a base amount of $100 which is provided to all the students. The students who perform exceptionally well during the academics get an extra amount based on their performance. You need to help the institution in developing an application for calculating the stipend by implementing the class based on the class diagram and description given below. =85 and =90 and =95 and

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!