Previous Next
0 / 10
Module DEMO-33-64DEMO-OOP-33

Lab Seat Planner

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a two-file project that reads a room code, its capacity, and the number of used seats, then prints the remaining-seat report.

Input Format

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

  1. room code
  2. room capacity
  3. used seats

Output Format

Print the exact report in this order:

  1. Room
  2. Remaining

Sample Testcases

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

Sample #1
Public sample
A1
20
11
Room: A1
Remaining: 9
Input: room code = "A1", room capacity = 20, used seats = 11.
Key calculation(s): remaining = 20 - 11 | "Room: " + "A1" = "Room: A1" | "Remaining: " + remaining = "Remaining: 9".
Output:
Room: A1
Remaining: 9
Sample #2
Public sample
B4
15
15
Room: B4
Remaining: 0
Input: room code = "B4", room capacity = 15, used seats = 15.
Key calculation(s): remaining = 15 - 15 | "Room: " + "B4" = "Room: B4" | "Remaining: " + remaining = "Remaining: 0".
Output:
Room: B4
Remaining: 0

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