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

Build Queue Dashboard

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create Main.java and BuildDashboard.java. Read build information and print a dashboard summary for the branch.

Input Format

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

  1. branch name
  2. total tests
  3. passed tests

Output Format

Print the exact report in this order:

  1. Branch
  2. Failed
  3. Pass Rate

Sample Testcases

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

Sample #1
Public sample
main
20
18
Branch: main
Failed: 2
Pass Rate: 90.00
Input: branch name = "main", total tests = 20, passed tests = 18.
Key calculation(s): failed = 20 - 18 | rate = (18 * 100.0) / 20 | "Branch: " + "main" = "Branch: main".
Output:
Branch: main
Failed: 2
Pass Rate: 90.00
Sample #2
Public sample
featureX
10
10
Branch: featureX
Failed: 0
Pass Rate: 100.00
Input: branch name = "featureX", total tests = 10, passed tests = 10.
Key calculation(s): failed = 10 - 10 | rate = (10 * 100.0) / 10 | "Branch: " + "featureX" = "Branch: featureX".
Output:
Branch: featureX
Failed: 0
Pass Rate: 100.00

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