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

Gradebook Statistics

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a helper class that stores three marks in a collection and prints the gradebook statistics.

Input Format

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

  1. first mark
  2. second mark
  3. third mark

Output Format

Print the exact report in this order:

  1. Highest
  2. Lowest
  3. Average

Sample Testcases

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

Sample #1
Public sample
80
70
90
Highest: 90
Lowest: 70
Average: 80.00
Input: first mark = 80, second mark = 70, third mark = 90.
Key calculation(s): marks = new ArrayList<>() | marks.add(80) | "Highest: " + highest = "Highest: 90".
Output:
Highest: 90
Lowest: 70
Average: 80.00
Sample #2
Public sample
100
65
75
Highest: 100
Lowest: 65
Average: 80.00
Input: first mark = 100, second mark = 65, third mark = 75.
Key calculation(s): marks = new ArrayList<>() | marks.add(100) | "Highest: " + highest = "Highest: 100".
Output:
Highest: 100
Lowest: 65
Average: 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