001-002-008

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

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
================================

Examples

Example 1: 1000 yen Purchase

Input:

1000

Output:

================================
      Point Card
================================
Purchase Amount: 1000 yen
Earned Points: 100 pt
================================

Example 2: 2500 yen Purchase

Input:

2500

Output:

================================
      Point Card
================================
Purchase Amount: 2500 yen
Earned Points: 250 pt
================================

Example 3: 100 yen Purchase

Input:

100

Output:

================================
      Point Card
================================
Purchase Amount: 100 yen
Earned Points: 10 pt
================================

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