019-003-002
Data Class: Temperature Record
Easy
Problem Description
Data Class: Temperature Record
Learning Objective: Structure and manage measurement data with class
Create class to manage temperature measurement records. Bundle three pieces of information into one class: location, temperature, and time, giving "meaning" to the data.
Input
Line 1: Location (string)
Line 2: Temperature (integer)
Line 3: Time (string, HH:MM format)
Output
Temperature Record:
Location: [location]
Temperature: [temperature]°C
Time: [time]
Test Cases
※ Output examples follow programming industry standards
Input:
Tokyo 25 14:30
Expected Output:
Input:
Osaka -5 06:00
Expected Output:
Input:
Sapporo 0 00:00
Expected Output:
❌ Some tests failed
Your Solution
Current Mode:● My Code
TemperatureRecord.java🔒
Solution.java🔒
2/6 ファイル0B
⚠️警告
- No main method found
9
1
›
0 B / 5 MB
You have 9 free executions remaining
