Next
0 / 15
Module DEMO-33-69DEMO-OOP-33

Student Badge Generator

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create two Java files: Main.java and StudentBadge.java.

Read the required values, construct a StudentBadge object, and print a multiline report.

The report must contain these lines in this order:

  1. ID
  2. Name
  3. Status

Use a constructor and keep the object-oriented structure clear.

Input Format

Input is provided as separate whitespace-separated tokens in the same order described in the problem statement.

Output Format

Print the exact multiline report required by the question.

Sample Testcases

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

Sample #1
Public sample
S101
Lina
15
ID: S101
Name: Lina
Status: FULL_TIME
Input: student id = "S101", student name = "Lina", credits = 15.
Key calculation(s): "ID: " + "S101" = "ID: S101" | "Name: " + "Lina" = "Name: Lina".
Output:
ID: S101
Name: Lina
Status: FULL_TIME
Sample #2
Public sample
S202
Omar
9
ID: S202
Name: Omar
Status: PART_TIME
Input: student id = "S202", student name = "Omar", credits = 9.
Key calculation(s): "ID: " + "S202" = "ID: S202" | "Name: " + "Omar" = "Name: Omar".
Output:
ID: S202
Name: Omar
Status: PART_TIME

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