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

Attendance Percent Tool

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a project with Main.java and AttendanceTool.java. Read the lab name, enrolled count, and present count, then print the attendance summary.

Input Format

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

  1. lab title
  2. enrolled students
  3. present students

Output Format

Print the exact report in this order:

  1. Lab
  2. Absent
  3. Attendance

Sample Testcases

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

Sample #1
Public sample
Intro
20
18
Lab: Intro
Absent: 2
Attendance: 90.00
Input: lab title = "Intro", enrolled students = 20, present students = 18.
Key calculation(s): absent = 20 - 18 | percent = (18 * 100.0) / 20 | "Lab: " + "Intro" = "Lab: Intro".
Output:
Lab: Intro
Absent: 2
Attendance: 90.00
Sample #2
Public sample
Loops
30
24
Lab: Loops
Absent: 6
Attendance: 80.00
Input: lab title = "Loops", enrolled students = 30, present students = 24.
Key calculation(s): absent = 30 - 24 | percent = (24 * 100.0) / 30 | "Lab: " + "Loops" = "Lab: Loops".
Output:
Lab: Loops
Absent: 6
Attendance: 80.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