summary refs log tree commit diff stats
path: root/java/output/StudentsArray.typ
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-01-27 11:33:43 +0000
committerSudipto Mallick <smlckz@termux-alpine>2024-01-27 11:34:11 +0000
commitcd6a9243c056710794549a1ab5d51fbdd082ce2e (patch)
treef3f4df42bcfa96b9d6ef48da2b33be148adfdd2b /java/output/StudentsArray.typ
parent1db2841d10c6920eba89f1e55eb3c90aa770ad07 (diff)
downloadzadania-cd6a9243c056710794549a1ab5d51fbdd082ce2e.tar.gz
Complete Java assignments #7-13
Diffstat (limited to 'java/output/StudentsArray.typ')
-rw-r--r--java/output/StudentsArray.typ55
1 files changed, 55 insertions, 0 deletions
diff --git a/java/output/StudentsArray.typ b/java/output/StudentsArray.typ
new file mode 100644
index 0000000..358a15b
--- /dev/null
+++ b/java/output/StudentsArray.typ
@@ -0,0 +1,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%
+```]
+