001-002-006

Variable Assignment: Point Card Calculation

Easy

Problem Description

variable Assignment: Point Card Calculation

Learning Objective: Understand variable assignment operations and store calculation results in new variables

In this problem, you will create a program that reads a purchase amount, calculates 10% of it as earned points, and displays the result in a point card format to standard output.

Create a program that calculates shopping points. When you input the purchase amount, it calculates and displays points (10% of purchase amount).

Input

Line 1: Purchase amount (integer, yen)

Output

================================
      Point Card
================================
Purchase Amount: [amount] yen
Earned Points: [points] pt
================================
```java

## Examples

### Example 1: 1000 yen Purchase
Input:
```java
1000
```java
Output:
```java
================================
      Point Card
================================
Purchase Amount: 1000 yen
Earned Points: 100 pt
================================
```java

### Example 2: 2500 yen Purchase
Input:
```java
2500
```java
Output:
```java
================================
      Point Card
================================
Purchase Amount: 2500 yen
Earned Points: 250 pt
================================
```java

### Example 3: 100 yen Purchase
Input:
```java
100
```java
Output:
```java
================================
      Point Card
================================
Purchase Amount: 100 yen
Earned Points: 10 pt
================================

Test Cases

※ Output examples follow programming industry standards

Input:
1000
Expected Output:
================================
  Point Card
================================
Purchase Amount: 1000 yen
Earned Points: 100 pt
================================
Input:
2500
Expected Output:
================================
  Point Card
================================
Purchase Amount: 2500 yen
Earned Points: 250 pt
================================
Input:
100
Expected Output:
================================
  Point Card
================================
Purchase Amount: 100 yen
Earned Points: 10 pt
================================
Input:
0
Expected Output:
================================
  Point Card
================================
Purchase Amount: 0 yen
Earned Points: 0 pt
================================
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
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