Arithmetic operators
📖 Scenario: You are helping a small shop owner calculate the total cost of items bought by a customer. You will use arithmetic operators in PowerShell to add, subtract, multiply, and divide numbers.
🎯 Goal: Build a simple PowerShell script that uses arithmetic operators to calculate the total price, discount, tax, and final amount to pay.
📋 What You'll Learn
Create variables for item prices and quantities
Create a variable for discount percentage
Calculate total price before discount
Calculate discount amount using multiplication
Calculate price after discount using subtraction
Calculate tax amount using multiplication
Calculate final price using addition
Print the final price
💡 Why This Matters
🌍 Real World
Calculating prices, discounts, and taxes is common in retail and billing systems.
💼 Career
Understanding arithmetic operators helps automate calculations in scripts for finance, sales, and inventory management.
Progress0 / 4 steps