The uThankItWeMakeIt is a catering service for traditional American Thanksgiving entrees. They deliver their meals to the 4 cities below, with the corresponding shipment fee to each city:
City Shipment Fee
Louisville 6.00%
Lexington 7.17%
Indianapolis 7.00% Nashville 8.74%
They sell the following entrees in all cities:
Enter Number Cost per Serving (Includes Sides)
10001 -- Butter-and-Herb Roast Turkey and Gravy $7.87
10002 -- Buttermilk Cornbread Stuffing with Sausage. $9.51 10003 – Mashed Sweet Potato Casserole $10.73
10004 – Brussels Sprouts and Bacon $9.99
10005 – Roasted Ham and Vegetables $11.99
10006 -- Leek and Potato Gratin $5.00
10007 – Pumpkin Pie and Ice Cream $4.58
Lastly, they have the following additional service fee structure depending on the number of servings of entrees sold: (note, a smaller order = a higher fee due to overhead costs)
Servings Service Fee
0-5 15%
6-10 10%
11-20 5%
21+ 0%
Our goal is to create an app allowing the user to input the order city, the order entree number, and the quantity in number of servings, and return a price to the user. This price is the adjusted price (from the additional service fee) plus any relevant shipment fees. Thus, your calculation will be finding total cost first (based on price and quantity of servings) and then the additional service fee (based on quantity/number of servings) and using the adjusted price to calculate the shipment fee.
The total cost includes the adjusted price and shipment fee.