Shipping Program This program should let the user enter any number of items into the program and then calculate and outp
Posted: Sat Nov 27, 2021 10:31 am
statement to sign a value to the handling variable Shipping and handling is calculated by adding the shipping cost to the handling cost. Your input and output should look like this This program lets the user etter products to be shipped and calculates the wal, tax, shipping and handling, and the grand total de
Enter two letter abbreviation of the state the package is being shipped to ca Enter quantity (enter 0 if done): 3 Enter weight of Item: 2 Enter cost of Item: 1 Enter quantity (enter O if done): 9 Enter weight of Item: 8 Enter cost of Item: 7 Enter quantity (enter 0 if done): 0 Subtotal: Tax: Shipping and Handling: Total Duc: >>> 66.00 5.28 22.50 93.78 This program lets the user enter products to be shipped and calculates the subtotal, tax, shipping and handling, and the grand total due. Enter two letter abbreviation of the state the package is being shipped to: Enter quantity (enter O if done): 3 Enter weight of Item: 2 Enter cost of Item: 1 Enter quantity (enter 0 if done): 9 Enter weight of Item: 8 Enter cost of Item: 7 Enter quantity (enter O if done). O Subtotal: Tax: Shipping and Handling: Total Due: 66.00 0.00 22.50 88.50 Hints: For the get product information loop use the GPA Calculator as a guide. Don't use an empty string to exit the loop since our quantity input is an integer use instead.
You will be appending to a list every time the loop runs. This list will have 3 things for each item: quantity, itemWsight, and itemCost return the List Name from the function. You will have to iterate over the list in order pull out the info for each item. Use the for minindex in range(lendistdame)): Good Luck!!!!! Remember to test your program with multiple known values.
Shipping Program This program should let the user enter any number of items into the program and then calculate and output the Subtotal, Tax.cfCA), Shinning and Handling, and Total Due. I used 8 Functions MUST DOS Use at least 4 functions in addition to the Greeting/Welcome (Total) Error Chock all User Input. Numbers and State abbreviations and y'n. Create and append to a List for user input Iterate over list when doing calculations Use O in quantity to stop entering items. Ask to run the program again. Yes/No Loop Format output so Numbers are right aligned. Sales Tax is only calculated for California. The Tax Rate is 8% shiestasub Total 08 Calculate shipping using the Total Weight of everything Shipping is 25 cents per pound. shippineCost-box Weight 25 Handling is a value swignment based on the Total Weight of everything If the Total Weight is less than 10 pounds Handling is 1 dollar If the Total Weight is more than 100 pounds Handling is 5 dollars. If the Total Weight is 10 to 100 pounds Handling is 3 dollars. Use an islielse Enter two letter abbreviation of the state the package is being shipped to ca Enter quantity (enter 0 if done): 3 Enter weight of Item: 2 Enter cost of Item: 1 Enter quantity (enter O if done): 9 Enter weight of Item: 8 Enter cost of Item: 7 Enter quantity (enter 0 if done): 0 Subtotal: Tax: Shipping and Handling: Total Duc: >>> 66.00 5.28 22.50 93.78 This program lets the user enter products to be shipped and calculates the subtotal, tax, shipping and handling, and the grand total due. Enter two letter abbreviation of the state the package is being shipped to: Enter quantity (enter O if done): 3 Enter weight of Item: 2 Enter cost of Item: 1 Enter quantity (enter 0 if done): 9 Enter weight of Item: 8 Enter cost of Item: 7 Enter quantity (enter O if done). O Subtotal: Tax: Shipping and Handling: Total Due: 66.00 0.00 22.50 88.50 Hints: For the get product information loop use the GPA Calculator as a guide. Don't use an empty string to exit the loop since our quantity input is an integer use instead.
You will be appending to a list every time the loop runs. This list will have 3 things for each item: quantity, itemWsight, and itemCost return the List Name from the function. You will have to iterate over the list in order pull out the info for each item. Use the for minindex in range(lendistdame)): Good Luck!!!!! Remember to test your program with multiple known values.