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

Access Shift Switch

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read a shift number. Use switch to print MORNING, AFTERNOON, or EVENING.

Input Format

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

  1. shift number

Output Format

Print the exact report in this order:

  1. Shift

Sample Testcases

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

Sample #1
Public sample
1
Shift: MORNING
Input: shift number = 1.
Key calculation(s): String label | label = "MORNING" | "Shift: " + label = "Shift: MORNING".
Output:
Shift: MORNING
Sample #2
Public sample
2
Shift: AFTERNOON
Input: shift number = 2.
Key calculation(s): String label | label = "MORNING" | "Shift: " + label = "Shift: AFTERNOON".
Output:
Shift: AFTERNOON

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