010-004-001
Method Overloading: Score Aggregation
Easy
Problem Description
method overloading: Score Aggregation
In this problem, you will create a program that implements overloaded aggregateScore methods to receive score data in three different types (int, double, and String), applies type-specific conversion logic to each, and displays the results in a unified format to standard output.
Learning Objective: Use overloading to process data in different formats uniformly
Process score data input in different formats (int, double, String) uniformly with overloaded aggregateScore methods. Convert double from 5-point scale to 100-point scale, convert String to number then process.
Input
None (use fixed values)
Output
Score: [converted points] points
Examples
Example 1: Basic scores
Output:
Score: 5000 points
Score: 90 points
Score: 70 points
Example 2: Different scores
Output:
Score: 2000 points
Score: 80 points
Score: 1500 points
Test Cases
※ Output examples follow programming industry standards
Input:
Expected Output:
Score: 5000 points Score: 90 points Score: 70 points
Input:
Expected Output:
Score: 5000 points Score: 90 points Score: 70 points
Input:
Expected Output:
Score: 5000 points Score: 90 points Score: 70 points
Input:
Expected Output:
Score: 5000 points Score: 90 points Score: 70 points
❌ Some tests failed
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 9 free executions remaining
