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

Student Record Decoder

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read a raw student id and raw year, then print the decoded record key. Handle missing ids and invalid years explicitly.

Input Format

Input is given as whitespace-separated raw tokens exactly in the order described by the problem statement.

Output Format

Print the exact success report or exact error message required by the problem.

Sample Testcases

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

Sample #1
Public sample
cs10
2026
Record: CS10-26
Input: raw student id = "cs10", raw year = "2026".
Derivation: "cs10".toUpperCase() = "CS10" | 2026 % 100 = 26 | "Record: " + "CS10-26" = "Record: CS10-26".
Output:
Record: CS10-26
Sample #2
Public sample
it22
2031
Record: IT22-31
Input: raw student id = "it22", raw year = "2031".
Derivation: "it22".toUpperCase() = "IT22" | 2031 % 100 = 31 | "Record: " + "IT22-31" = "Record: IT22-31".
Output:
Record: IT22-31

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