Need Python pseudocode and program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any)and the total amount of the purchase after the discount.

Software co. sells a pkg that retails for $99. Quantity discounts are given according to the following table:
10-19_10%, 20-49_20%, 50-99_30%, 100 or more 40%

Software co. sells a pkg that retails for $99. Quantity discounts are given according to the following table:

10-19_10%, 20-49_20%, 50-99_30%, 100 or more 40

Step 1: Start

Step 2: Initialize the price per package to $99
Step 3: Get the number of packages purchased from the user
Step 4: Calculate the discount based on the quantity purchased using conditional statements
- if number of packages is between 10 and 19 (inclusive), discount = 10%
- else if number of packages is between 20 and 49 (inclusive), discount = 20%
- else if number of packages is between 50 and 99 (inclusive), discount = 30%
- else if number of packages is 100 or more, discount = 40%
- else discount = 0%
Step 5: Calculate the total amount of the purchase after the discount by multiplying the number of packages by the price per package minus the discount amount
Step 6: Display the discount amount and the total amount of the purchase after the discount
Step 7: End

Here's a Python program that implements the above pseudocode:

```
price_per_package = 99

# Step 3
number_of_packages = int(input("Enter the number of packages purchased: "))

# Step 4
if number_of_packages >= 10 and number_of_packages <= 19:
discount = 0.1
elif number_of_packages >= 20 and number_of_packages <= 49:
discount = 0.2
elif number_of_packages >= 50 and number_of_packages <= 99:
discount = 0.3
elif number_of_packages >= 100:
discount = 0.4
else:
discount = 0

# Step 5
total_amount = number_of_packages * price_per_package * (1 - discount)

# Step 6
print("Discount: $" + str(discount * price_per_package * number_of_packages))
print("Total amount after discount: $" + str(total_amount))
```

This program prompts the user to enter the number of packages purchased, calculates the discount based on the quantity purchased, and then calculates the total amount of the purchase after the discount. Finally, it displays the discount amount and the total amount of the purchase after the discount.

To solve this task, you can follow these steps:

1. Prompt the user to enter the number of packages purchased.
2. Read the user's input and store it in a variable, let's call it `quantity`.
3. Calculate the initial total amount by multiplying the quantity by the package's retail price of $99. Store this in a variable called `total_amount`.
4. Check if the quantity falls within any of the discount ranges using conditional statements.
5. If the quantity is between 10 and 19 (inclusive), calculate the discount at 10% by multiplying `total_amount` by 0.1. Subtract this discount from `total_amount`.
6. If the quantity is between 20 and 49 (inclusive), calculate the discount at 20% by multiplying `total_amount` by 0.2. Subtract this discount from `total_amount`.
7. If the quantity is between 50 and 99 (inclusive), calculate the discount at 30% by multiplying `total_amount` by 0.3. Subtract this discount from `total_amount`.
8. If the quantity is 100 or more, calculate the discount at 40% by multiplying `total_amount` by 0.4. Subtract this discount from `total_amount`.
9. Display the amount of the discount (if any).
10. Display the total amount of the purchase after the discount.

Here's the Python pseudocode for the solution:

```
# Prompt the user to enter the number of packages
print("Enter the number of packages purchased:")
quantity = int(input())

# Calculate the total amount
total_amount = quantity * 99

# Calculate the discount based on the quantity
discount = 0.0

if 10 <= quantity <= 19:
discount = total_amount * 0.1
elif 20 <= quantity <= 49:
discount = total_amount * 0.2
elif 50 <= quantity <= 99:
discount = total_amount * 0.3
elif quantity >= 100:
discount = total_amount * 0.4

# Calculate the total amount after the discount
total_amount -= discount

# Display the discount and total amount after the discount
print("Discount: $" + str(discount))
print("Total amount after discount: $" + str(total_amount))
```

You can now convert this pseudocode into a fully functional Python program by adding appropriate syntax and input/output statements.