Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this homework you will be practicing the art of work flow through the use of try, except, if , elif,else. Thus, complete the following
In this homework you will be practicing the art of work flow through the use of try, except, ifelif,else. Thus, complete the following problems, emphasizing the work flow necessary to assure that the task is completed and all possible outcomes are accounted for.
Problem : We are a small business and want to create a calculator for a product which we carry. The uniqe situation associated with this product is that the cost varies depending on the quatity purchased. However, there is a setup cost associated with making this product which is $ This means that we will not make any money for orders less than or equal to units.
The product is a highly specialized item we fabricate in house. The Cost of Good Sold COGS is roughly $ for making the product, packaging, and so forth. We need to develop a simple what if model that will allows to properly price the order for customers. The following table contains the information regarding our current pricing policy. If the order is for units than this falls in the price markup range thus, the customer will be priced at at markup above cost, thus it is for example The shipping column contains the percent total it costs to ship the order, for example if the order is then the cost of shipping is an additional on top of the cost, that is the shipping cost is We do not acept order if the order is less than thus if a user enters an order quantity of then an error should be given. The error message should be: "ERROR: We do not accept orders less than units for this product. Enter a number greater than or equal to and try again". Bonus pts make the error text bold and red. The output should consist of the following information: price: order quatitymarkup shipping cost: Cost of shipping order, subtotal: shipping plus price,sales taxes: La Plata county sales tax is which is applied to the subtotal. Finally, present the total cost. All numbers presented should rounded to decimals as it is money.
INPUT: Order quantity: OUPUT:
Price:
Shipping:
Subtotal:
Sales Taxes:
Total: in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started