-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemo Class.java
More file actions
38 lines (30 loc) · 952 Bytes
/
Demo Class.java
File metadata and controls
38 lines (30 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package ulab.cse;
public class DemoClass {
public static void main(String[] args) {
Payment student1 = new Payment();
System.out.println("\n credit: 15 Cgpa: 3.8");
student1.set_cGpa(3.8);
student1.set_Credit(15);
student1.calculateFees();
student1.offerScholarship();
student1.calculateFeesWithMertis();
System.out.println("\n credit: 15 Cgpa: 3.6");
student1.set_cGpa(3.6);
student1.set_Credit(15);
student1.calculateFees();
student1.offerScholarship();
student1.calculateFeesWithMertis();
System.out.println("\n credit: 15 Cgpa: 3.3");
student1.set_cGpa(3.3);
student1.set_Credit(15);
student1.calculateFees();
student1.offerScholarship();
student1.calculateFeesWithMertis();
System.out.println("\n credit: 15 Cgpa: 2.5");
student1.set_cGpa(2.5);
student1.set_Credit(15);
student1.calculateFees();
student1.offerScholarship();
student1.calculateFeesWithMertis();
}
}