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

Grade Action Field

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a Swing panel with a text field and label. Pressing Enter in the text field must trigger an action event that updates the result label.

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
80
Result: PASS
Input: student mark = 80.
Derivation: 80 >= 50 = true, so the result is "PASS" | "Result: " + "PASS" = "Result: PASS".
Final label text:
Result: PASS
Sample #2
Public sample
49
Result: REPEAT
Input: student mark = 49.
Derivation: 49 >= 50 = false, so the result is "REPEAT" | "Result: " + "REPEAT" = "Result: REPEAT".
Final label text:
Result: REPEAT

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