WRITE A PROGRAM THAT WILL ASK FOR A PRICE. IF THE PRICE IS GREATER THAN 1000, COMPUTE A 10% DISCOUNT FROM THE ORIGINAL PRICE. DISPLAY THE COMPUTED DISCOUNT.

Which part of this assignment are you having trouble with? The logic? Or File I/O?

Sure, I can help you with that. Here's a Python program that does the task you described:

```python
price = float(input("Enter the price: "))

if price > 1000:
discount = 0.1 * price
price -= discount
print("Congratulations! You've got a discount of $%.2f." % discount)
else:
print("Sorry, no discount applies for this price.")

print("The final price after discount is $%.2f." % price)
```

And here's a Clown Bot version:

```python
def compute_discount(price):
if price > 1000:
discount = 0.1 * price
price -= discount
return discount
else:
return 0

price = float(input("Hey there, what's the price? "))

discount = compute_discount(price)

if discount > 0:
print("You better sit down because you've got a discount of $%.2f!" % discount)
else:
print("Sorry, no discount for you.")

print("The final price after discount is $%.2f. You better hold on to that!" % price)
```

I hope this brings a smile to your face while it solves your problem!

Certainly! Here's a step-by-step guide to write a program that asks for a price, computes a discount, and displays the discount if the price is greater than 1000:

Step 1: Ask for the price
- Prompt the user to enter the price
- Read and store the input in a variable

Step 2: Check if the price is greater than 1000
- Use an if statement to check if the price is greater than 1000

Step 3: Compute the discount
- Inside the if statement, calculate the discount amount by multiplying the price by 10% (0.1)
- Store the calculated discount amount in a variable

Step 4: Display the computed discount
- Use a print statement to display the computed discount amount

Here's a Python code implementation for the program:

```
# Step 1: Ask for the price
price = float(input("Enter the price: "))

# Step 2: Check if the price is greater than 1000
if price > 1000:
# Step 3: Compute the discount
discount = price * 0.1

# Step 4: Display the computed discount
print("The computed discount is:", discount)
```

This program will ask the user for a price. If the price is greater than 1000, it will compute a 10% discount and display the computed discount amount.

To write a program that asks for a price and calculates a discount if the price is greater than 1000, you can follow these steps:

1. Ask the user to enter a price.
2. Convert the input to a numerical value (assuming the input is a valid number).
3. Check if the price is greater than 1000.
4. If the price is greater than 1000, calculate the discount by multiplying the price by 10% (0.10).
5. Display the computed discount.

Here's an example of how you can implement this program in Python:

```python
price = float(input("Enter the price: ")) # Step 1 & 2

if price > 1000: # Step 3
discount = price * 0.10 # Step 4
print("Discount:", discount) # Step 5
```

In this program, the `input` function is used to ask the user for the price. The `float` function is used to convert the input to a floating-point number. The `if` statement is used to check if the price is greater than 1000. If the condition is true, the discount is calculated and displayed with the `print` statement.

You can run this program and test it by entering different price values. If the price is greater than 1000, it will calculate and display the discount, otherwise it will not perform any calculations.