008-006-004

Method Return Value: Total Points Calculation

Easy

Problem Description

method Return Value: Total Points Calculation

In this problem, you will create a program that defines a method receiving three integer arguments (points from each purchase), returns their sum using a return statement, and displays the result to standard output.

Learning Objective: Create method that receives multiple arguments and returns calculated result

Calculate total earned points for point card. Create method that receives points from three purchases as arguments and returns total with return statement.

Input

Line 1: Points from purchase 1 (integer)
Line 2: Points from purchase 2 (integer)
Line 3: Points from purchase 3 (integer)

Output

Total points: [total]pt
```java

## Examples

### Example 1: 50+30+20=100
Input:
```java
50
30
20
```java
Output:
```java
Total points: 100pt
```java

### Example 2: Same value three times
Input:
```java
10
10
10
```java
Output:
```java
Total points: 30pt
```java

### Example 3: Including 0 (boundary)
Input:
```java
100
0
0
```java
Output:
```java
Total points: 100pt

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up