Previous Next
0 / 15
Module DEMO-33-74DEMO-OOP-33

Enrollment Badge Panel

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a Swing enrollment form with three text fields, a button, and a label. The button must build and display the badge text.

Input Format

Input is given as whitespace-separated values and is used by Main.java to simulate the GUI interaction.

Output Format

Print the final label text returned by the simulation.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
Lina
S10
a
Badge: LINA-S10-A
Input: student name = "Lina", student id = "S10", section code = "a".
Derivation: "Lina".toUpperCase() = "LINA" and "a".toUpperCase() = "A" | "Badge: " + "LINA-S10-A" = "Badge: LINA-S10-A".
Final label text:
Badge: LINA-S10-A
Sample #2
Public sample
Omar
S22
b
Badge: OMAR-S22-B
Input: student name = "Omar", student id = "S22", section code = "b".
Derivation: "Omar".toUpperCase() = "OMAR" and "b".toUpperCase() = "B" | "Badge: " + "OMAR-S22-B" = "Badge: OMAR-S22-B".
Final label text:
Badge: OMAR-S22-B

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings