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

Weighted Grade Calculator

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read three assessment scores and print the weighted final grade.

Input Format

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

  1. midterm score
  2. project score
  3. final exam score

Output Format

Print the exact report in this order:

  1. Weighted Grade

Sample Testcases

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

Sample #1
Public sample
80.0
90.0
70.0
Weighted Grade: 77.00
Input: midterm score = 80.0, project score = 90.0, final exam score = 70.0.
Key calculation(s): total = (80.0 * 0.30) + (90.0 * 0.20) + (70.0 * 0.50) | "Weighted Grade: " + String.format("%.2f", total) = "Weighted Grade: 77.00".
Output:
Weighted Grade: 77.00
Sample #2
Public sample
60.0
75.0
88.0
Weighted Grade: 77.00
Input: midterm score = 60.0, project score = 75.0, final exam score = 88.0.
Key calculation(s): total = (60.0 * 0.30) + (75.0 * 0.20) + (88.0 * 0.50) | "Weighted Grade: " + String.format("%.2f", total) = "Weighted Grade: 77.00".
Output:
Weighted Grade: 77.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