Previous Next
0 / 13
Module DEMO-33-61DEMO-OOP-33

Campus Badge Card

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read a student name, group number, and lab code, then print a small badge report.

Convert the lab code to uppercase inside the seat code.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. student name
  2. group number
  3. lab code

Output Format

Print the exact report in this order:

  1. Student
  2. Group
  3. Seat Code

Sample Testcases

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

Sample #1
Public sample
Lina
3
b12
Student: Lina
Group: 3
Seat Code: B12-3
Input: student name = "Lina", group number = 3, lab code = "b12".
Key calculation(s): seatCode = "b12".toUpperCase() + "-" + 3 | "Student: " + "Lina" = "Student: Lina" | "Group: " + 3 = "Group: 3".
Output:
Student: Lina
Group: 3
Seat Code: B12-3
Sample #2
Public sample
Omar
7
c9
Student: Omar
Group: 7
Seat Code: C9-7
Input: student name = "Omar", group number = 7, lab code = "c9".
Key calculation(s): seatCode = "c9".toUpperCase() + "-" + 7 | "Student: " + "Omar" = "Student: Omar" | "Group: " + 7 = "Group: 7".
Output:
Student: Omar
Group: 7
Seat Code: C9-7

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