007-003-003
Using Classes: Student Information Management
Easy
Problem Description
Using Classes: Student Information Management
Learning Objective: Understand how to define and use methods in a class
Create a Student class that manages student name and score. Define methods within the class to format and display information.
Input
Line 1: Student name (string)
Line 2: Score (integer)
Output
Student: [name]
Score: [score] points
Test Cases
※ Output examples follow programming industry standards
Input:
Tanaka 85
Expected Output:
Student: Tanaka Score: 85 points
Input:
Suzuki 100
Expected Output:
Student: Suzuki Score: 100 points
Input:
Yamada 0
Expected Output:
Student: Yamada Score: 0 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
