Python


CLICK HERE TO DOWNLOAD THIS ANSWER  INSTANTLY $19 Only

 

Write an application that calculates the total cost for a product including shipping, handling and tax. This should have 3 functions in addition to main. 1. The first function asks the user to enter the subtotal of their order and returns this information to main. These values must be validated. Subtotal must be at least $1 and no more than $9,999. 2. The second function calculates the shipping cost and handling cost then returns this information to main. Shipping is 10% of the order cost. For example, the shipping for a $10 order is $1. Handling is a flat rate of $2 for orders less than $100. Otherwise, handling is free. 3. The third function calculates sales tax at 6% and returns this information to main. Sales tax is only based on the subtotal and not on shipping or handling. 4. Main will then display this information on the screen like the sample below. (Values will have to be passed and returned).The output should look something like the following:

Product Total Information
Subtotal $300.00
Shipping $30.00
Handling $0.00
Sales tax $18.00
Grand total $348.00