Previous Next
0 / 11
Module DEMO-33-62DEMO-OOP-33

Score Average

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read three scores and print their average.

Input Format

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

  1. quiz score
  2. lab score
  3. exam score

Output Format

Print the exact report in this order:

  1. Average

Sample Testcases

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

Sample #1
Public sample
70
80
90
Average: 80.00
Input: quiz score = 70, lab score = 80, exam score = 90.
Key calculation(s): average = (70 + 80 + 90) / 3.0 | "Average: " + String.format("%.2f", average) = "Average: 80.00".
Output:
Average: 80.00
Sample #2
Public sample
100
90
80
Average: 90.00
Input: quiz score = 100, lab score = 90, exam score = 80.
Key calculation(s): average = (100 + 90 + 80) / 3.0 | "Average: " + String.format("%.2f", average) = "Average: 90.00".
Output:
Average: 90.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