How to work this programming problem-

Write a program that allows the user to input a total dollar amount for an online shopping order and computers 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

Basically programming is to express what you would do in a programming language.

This is what I would do if I did it by hand:

1. Tell me how much the order total
(example: $88)
2. Determine the destination
(example US)
3. Locate from the table the shipping cost (for US)
0-50 $6
50.01-100 $9
100.01-150 $12
over 150 free
Since $88 is within the 50.01 to 100 bracket, the shipping cost (to US) is $9.
4. Print "Shipping cost to US is $9 for an order of $88"

What I just wrote is called a pseudocode.
You will need to adapt this to the programming language of your choice.

To solve this programming problem, you can follow these steps:

1. Start by defining the main function of your program. This function will contain the logic to take user input and calculate the shipping cost.

2. Inside the main function, prompt the user to enter the total dollar amount for the online shopping order. You can use the input() function in Python to get user input.

3. After getting the user input, you need to determine the shipping cost based on the order total. To do this, you can use conditional statements (if-elif-else) to check which shipping bracket the order total falls into.

- If the order total is less than $50.00, the shipping cost within the USA will be $6.00 and to Canada will be $8.00.
- If the order total is between $50.01 and $100.00, the shipping cost within the USA will be $9.00 and to Canada will be $12.00.
- If the order total is between $100.01 and $150.00, the shipping cost within the USA will be $12.00 and to Canada will be $15.00.
- If the order total is over $150.00, there will be free shipping both within the USA and to Canada.

4. Calculate the shipping cost based on the user input and the conditions mentioned above.

5. Finally, display the calculated shipping cost to the user as output.

Here's a sample Python code snippet that implements the above steps:

```
def calculate_shipping_cost():
order_total = float(input("Enter the total dollar amount for the online shopping order: "))

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

print(f"Shipping cost within USA: ${usa_shipping_cost:.2f}")
print(f"Shipping cost to Canada: ${canada_shipping_cost:.2f}")

calculate_shipping_cost()
```

You can run this code to execute the program and test different order total values to get the shipping cost.