"""
Topic 02: Variables, Data Types & Operators - HARD Exercises (10)
"""
# Exercise 1: Create a simple interest calculator.
# User inputs: Principal (P), Rate (R), Time (T).
# Formula: SI = (P * R * T) / 100. Print the result.
# Write your code below:
# Exercise 2: Quadratic Equation - Find the discriminant (D).
# Formula: D = b**2 - 4*a*c.
# Prompt user for a, b, and c. Print D.
# Write your code below:
# Exercise 3: Use the bitwise AND, OR, and XOR operators on two integers (e.g., 5 and 3).
# Print the results and explain what they do in comments.
# Write your code below:
# Exercise 4: Format a string to display a receipt.
# Use variables for item_name, quantity, and price_per_unit.
# Example output:
# Item: Apples | Qty: 5 | Total: $10.00
# Write your code below:
# Exercise 5: Verify if a year is a leap year using ONLY comparison and logical operators.
# (A year is a leap year if it is divisible by 4 but not by 100, OR if it is divisible by 400).
# Output: True or False.
# Write your code below:
# Exercise 6: Compound Interest Calculator.
# Formula: A = P(1 + r/n)^(nt)
# Create variables for P, r, n, t and calculate A.
# Write your code below:
# Exercise 7: Split a 3-digit number into its individual digits and print their sum.
# Example: 123 -> 1 + 2 + 3 = 6
# Hint: Use // and %
# Write your code below:
# Exercise 8: Create a simple unit converter (e.g., Kilometers to Miles).
# 1 km = 0.621371 miles. Ask for km, print miles.
# Write your code below:
# Exercise 9: Demonstrate the 'short-circuit' evaluation of 'and' and 'or' operators using code.
# Write your code below:
# Exercise 10: Calculate the area of a triangle using Heron's formula.
# s = (a+b+c)/2
# Area = sqrt(s*(s-a)*(s-b)*(s-c))
# Hint: Use ** 0.5 for square root.
# Write your code below: