Fixed most of it. Your math is just wrong on calculating "express shipping" since it doesn't touch the shipping charge whatsoever.
#!/usr/bin/env pythondef main(): #Prompts user for weight of shipment shipment_weight = float(input("Weight of shipment(lbs): ")) #If weight of shipment is greater than 50, print 'Too heavy' and program ends if shipment_weight > 50: print("\nToo heavy!") return 0 express_shipment = raw_input("Express shipment? ") if str(express_shipment).lower() in ['n','no']: shipment_charge = .50 * shipment_weight elif express_shipment == 'y' or 'yes': shipment_distance = float(input("Distance of shipment(miles): ")) if shipment_distance > 12450: print("Out of range of Earth's surface!") return 0 if shipment_weight <= 3: shipment_charge = (shipment_distance / 200) * 3.00 if shipment_weight > 3 and shipment_weight <= 10: shipment_charge = (shipment_distance / 200) * 6.50 if shipment_weight > 10 and shipment_weight <= 20: shipment_charge = (shipment_distance / 200) * 14.00 if shipment_weight > 20: shipment_charge = (shipment_distance / 200) * 30.00 print "Shipment charge: $%g" % shipment_chargeif __name__ == '__main__': main()
The big issue was that you were doing comparisons on strings that don't make sense. You cannot do "if 10 < some_var <= 10" in pretty much any programming language. You have to use compound boolean comparisons.
This is not only illegal, but that's not how schools run their networks.
Y'all just don't understand how networking for tens of thousands of clients works, and how hard it is.
It's called independent contracting. He's not an employee as defined by the state of Florida of the people paying him, and is receiving untaxed income. Even if the state of Florida doesn't care about that income, the federal government sure as hell does.
I've filed as a contractor since I was 16.