Learner Average (OOP)

MediumGrade 11

Complete the Learner class's getAverage() method so it returns the average of the three marks, then print the learner's name and average.

Input / Output

Input: line 1 is the learner's name, line 2 has three space-separated integer marks. Output: "name: average" with the average to 1 decimal place.

Examples

Input

Thabo
70 80 76

Expected Output

Thabo: 75.3

Input

Aisha
90 90 90

Expected Output

Aisha: 90.0

+ 2 hidden tests checked on Submit.

Files

Main.java is the entry point. Add extra classes for OOP exercises — they compile together.

Main.java
Loading...

Run your code to see test results here.