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

Progress Banner

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read a course name and the completed and total task counts, then print a progress banner.

Input Format

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

  1. course name
  2. completed tasks
  3. total tasks

Output Format

Print the exact report in this order:

  1. Course
  2. Progress
  3. Percent

Sample Testcases

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

Sample #1
Public sample
Java
3
5
Course: Java
Progress: 3/5
Percent: 60.00
Input: course name = "Java", completed tasks = 3, total tasks = 5.
Key calculation(s): percent = (3 * 100.0) / 5 | progress = 3 + "/" + 5 | "Course: " + "Java" = "Course: Java".
Output:
Course: Java
Progress: 3/5
Percent: 60.00
Sample #2
Public sample
OOP
7
10
Course: OOP
Progress: 7/10
Percent: 70.00
Input: course name = "OOP", completed tasks = 7, total tasks = 10.
Key calculation(s): percent = (7 * 100.0) / 10 | progress = 7 + "/" + 10 | "Course: " + "OOP" = "Course: OOP".
Output:
Course: OOP
Progress: 7/10
Percent: 70.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