The program written in python 3 which prints the shipping cost based on the total shopping cost is written thus :
cost = int(input('Enter your shopping cost : '))
<em>#accepts</em><em> </em><em>integer</em><em> </em><em>input</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>customer's</em><em> </em><em>shopping</em><em> </em><em>cost</em><em> </em>
if cost < 50 :
print('ship within USA : $6 ')
print('ship to canada : $8')
<em>#if</em><em> </em><em>cost</em><em> </em><em>of</em><em> </em><em>shopping</em><em> </em><em>is</em><em> </em><em>below</em><em> </em><em>$</em><em>50</em><em>,</em><em> </em><em>shopping</em><em> </em><em>to</em><em> </em><em>USA</em><em> </em><em>is</em><em> </em><em>$</em><em>6</em><em> </em><em>and</em><em> </em><em>Canada</em><em> </em><em>$</em><em>8</em>
elif (cost >=50) & (cost < 100):
print('ship within USA : $9 ')
print('ship to canada : $12')
<em>#if cost of shopping is between $50 and below $100, shopping to USA is $9 and Canada $12</em>
elif (cost>=100) & (cost < 150):
print('ship within USA : $12')
print('ship to canada : $15')
<em>#if cost of shopping is between $</em><em>100</em><em> </em><em>and below $</em><em>150</em><em>, shopping to USA is $</em><em>12</em><em> and Canada $</em><em>15</em>
elif cost > 150 :
print('ship within USA : Free')
print('ship to canada : Free')
<em>#if cost of shopping is above $150 ; then shipping cost is free to both countries. </em>
Learn more :brainly.com/question/24847242