Write a program that allows the user to input a total dollar amount for an

online shopping order and computes and outputs the shipping cost based
on the following schedule:
Order Total Ship within USA Ship to Canada
Less than $50.00 $6.00 $8.00
$50.01–$100.00 $9.00 $12.00
$100.01–$150.00 $12.00 $15.00
Over $150.00 Free Free

Where is answer

I didn't get the answer

Didn't get ans.

To write a program that calculates the shipping cost based on the given schedule, you can follow these steps:

1. Prompt the user to enter the total dollar amount of the online shopping order.
2. Read the input value.
3. Use conditional statements (if-else or switch-case) to determine the shipping cost based on the order total.
4. Output the calculated shipping cost.

Here's an example code in Python to demonstrate this:

```python
order_total = float(input("Enter the total dollar amount of the order: "))

if order_total < 50.00:
ship_usa = 6.00
ship_canada = 8.00
elif order_total <= 100.00:
ship_usa = 9.00
ship_canada = 12.00
elif order_total <= 150.00:
ship_usa = 12.00
ship_canada = 15.00
else:
ship_usa = 0.00
ship_canada = 0.00

print("Shipping cost within USA: $", ship_usa)
print("Shipping cost to Canada: $", ship_canada)
```

In this code, we first prompt the user to enter the order total using the `input()` function. We then compare the entered value using an if-elif-else statement to determine the shipping cost within the USA (`ship_usa`) and to Canada (`ship_canada`). Finally, we output the calculated shipping costs using the `print()` function.