summary refs log tree commit diff stats
path: root/java/output/StudentsArray.typ
blob: 358a15beab0b06cdb628fb7e18c0ef1607ff34b5 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#import "/template.typ": highlight-output
#highlight-output[```
$ java StudentsArray
Enter the number of students: 
2
Enter the details of the students:
For student 1: Enter the details of the student:
Enter Roll no.: 1
Enter name: Lee Haseol
Enter stream: Science
For subject 1: Enter details of subject:
Enter title: Physics
Enter theory marks: 94
For subject 2: Enter details of subject:
Enter title: Chemistry
Enter theory marks: 96
For subject 3: Enter details of subject:
Enter title: Mathematics
Enter theory marks: 98
For student 2: Enter the details of the student:
Enter Roll no.: 43
Enter name: Lin Feng
Enter stream: Arts
For subject 1: Enter details of subject:
Enter title: History
Enter theory marks: 47
For subject 2: Enter details of subject:
Enter title: Caligraphy
Enter theory marks: 56
For subject 3: Enter details of subject:
Enter title: Philosophy
Enter theory marks: 72
Displaying the details of the students:

For student 1: 
Student details:
  Roll No.: 1
  Name: Lee Haseol
  Stream: Science
  Marks obtained in Physics: 94
  Marks obtained in Chemistry: 96
  Marks obtained in Mathematics: 98
  Average percentage: 96.00%

For student 2: 
Student details:
  Roll No.: 43
  Name: Lin Feng
  Stream: Arts
  Marks obtained in History: 47
  Marks obtained in Caligraphy: 56
  Marks obtained in Philosophy: 72
  Average percentage: 58.33%
```]