003-001-008

Arithmetic Operators: Shopping Calculator

Easy

Problem Description

Arithmetic Operators: Shopping Calculator

Learning Objective: Use arithmetic operators (+, -, *, /) for calculations

Create a program to calculate shopping totals. Calculate the total amount from the product price and quantity.

Input

Line 1: Product name (string)
Line 2: Unit price (integer)
Line 3: Quantity (integer)

Output

Item: [product name]
Price: [unit price] x [quantity] = [total]

Examples

Example 1

Input:

Apple
150
3

Output:

Item: Apple
Price: 150 x 3 = 450

Example 2

Input:

Orange
200
5

Output:

Item: Orange
Price: 200 x 5 = 1000

Ready to Try Running Code?

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

Don't have an account?