aboutsummaryrefslogtreecommitdiff
path: root/Bachelorizer.java
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelorizer.java')
-rw-r--r--Bachelorizer.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/Bachelorizer.java b/Bachelorizer.java
new file mode 100644
index 0000000..d30708e
--- /dev/null
+++ b/Bachelorizer.java
@@ -0,0 +1,54 @@
+import java.util.Arrays;
+
+/// Bachelorizer - bachelor programme registrar
+///
+/// SPDX-License-Identifier: GPL-3.0-or-later
+/// SPDX-FileCopyrightText: 2025 Jonas Smedegaard <dr@jones.dk>
+///
+/// Tool for registering students
+/// for activities in their bachelor programme.
+///
+/// Core class usable in several ways
+/// * as self-contained executable via method main()
+/// * embedded in a larger system by instantiating Bachelorizer()
+///
+/// * v0.0.1-draft
+/// * initial release, as part of delivery "Portfolio 1"
+///
+/// @version 0.0.1-draft
+/// @see <https://moodle.ruc.dk/mod/assign/view.php?id=523186>
+public class Bachelorizer {
+
+ public String name;
+ public String[] activities;
+
+ /// Bachelorizer constructor
+ ///
+ /// @param name name of student as String
+ /// @param activities chosen activities as String array
+ public Bachelorizer(
+ final String name,
+ final String[] activities
+ ) {
+ this.name = name;
+ this.activities = activities;
+ }
+
+ /// JVM entry point
+ ///
+ /// @param args command-line arguments (ignored)
+ public static void main(final String[] args) {
+
+ // Instantiation as dictated by assignment
+ final int population = 10;
+ final int[] observationpoint = new int[] {5, 5};
+ Bachelorizer session = new Bachelorizer(
+ "Jonas Smedegaard",
+ new String[] {"CS-SMC2", "CS-SMC3"});
+
+ // minimal viable product
+ System.out.printf("Hi %s%nYou chose these activities: ",
+ session.name);
+ System.out.println(Arrays.toString(session.activities));
+ }
+}