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

Enrollment Confirmation

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read the enrollment details and print a confirmation block.

Input Format

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

  1. student name
  2. student id
  3. section code
  4. seat number

Output Format

Print the exact report in this order:

  1. Student
  2. ID
  3. Section
  4. Seat
  5. Message

Sample Testcases

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

Sample #1
Public sample
Lina
S12
A
8
Student: Lina
ID: S12
Section: A
Seat: 8
Message: ENROLLED
Input: student name = "Lina", student id = "S12", section code = "A", seat number = 8.
Key calculation(s): message = "ENROLLED" | "Student: " + "Lina" = "Student: Lina" | "ID: " + "S12" = "ID: S12".
Output:
Student: Lina
ID: S12
Section: A
Seat: 8
Message: ENROLLED
Sample #2
Public sample
Omar
S33
B
4
Student: Omar
ID: S33
Section: B
Seat: 4
Message: ENROLLED
Input: student name = "Omar", student id = "S33", section code = "B", seat number = 4.
Key calculation(s): message = "ENROLLED" | "Student: " + "Omar" = "Student: Omar" | "ID: " + "S33" = "ID: S33".
Output:
Student: Omar
ID: S33
Section: B
Seat: 4
Message: ENROLLED

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