Question

In: Computer Science

Your order from store Your orders are 10 chips You purchased a total of 10 chips...

Your order from store
Your orders are 
10 chips
You purchased a total of 10 chips with a total price of $90
5 gums
You purchased a total of 5 gums with a total price of $30

Question: Please create a code to allow you to remove one or more of your orders (in python3 language)

Solutions

Expert Solution

Here Iam providing the code and the output for the given problem in python

Code

Sample output

Sample output

Code

chips_purchased = 10
chips_price_each = 9 #From given input

gums_purchased = 5
gum_price_each = 6


remove = int(input("Enter no of items you want to remove from chips : ")) #taking input for removing chips
if(remove > 0 and remove <= chips_purchased):
chips_purchased = chips_purchased - remove
else:
print("Cannot remove available chips are",chips_purchased)

remove = int(input("Enter no of items you want to remove from gums : ")) #taking input for removing gums
if(remove > 0 and remove <= gums_purchased):
gums_purchased = gums_purchased -remove
else:
print("Cannot remove available gums are",gums_purchased)


  
print("\nThe total amount for chips :$",chips_purchased * chips_price_each) #printing out the bill
print("The total amount for gums :$",gums_purchased*gum_price_each)


Related Solutions

Store Locaton Purchasing Dept. Cost ($) Merchandise Purchased ($) # of Purchase Orders # of Suppliers...
Store Locaton Purchasing Dept. Cost ($) Merchandise Purchased ($) # of Purchase Orders # of Suppliers Sheridan, WY 575,000     47,239,000 1708 61 Denver 1,226,000 102,364,000 2519 95 Salt Lake City 1,710,000 100,162,000 2506 139 Kansas City 881,000     95,760,000 1719 91 Omaha 1,544,000     51,466,000 2883 155 Milwaukee 794,000     50,631,000 647 75 Minneapolis 1,341,000     84,753,000 2978 103 Phoenix 794,000 103,464,000 3761 117 Las Vegas 2,216,000     96,162,000 2584 73 Albuquerque 2,030,000     62,364,000 5497 176 Tucson 1,338,000...
2. Every day, you order take-out dinner from the nearby Chinese place and your roommate orders...
2. Every day, you order take-out dinner from the nearby Chinese place and your roommate orders take-out from the shwarma place, which is a little farther away. The Chinese take-out is delivered after an exponential waiting time with mean 10 minutes, whereas the shwarma arrives after an (independent) exponential waiting time with a mean of 20 minutes. Whoever gets their food first always takes pity on the other and shares. (a) Let Sn be the amount of time, over the...
A department store sells 10,000 units of handbags per year. The store orders handbags from a...
A department store sells 10,000 units of handbags per year. The store orders handbags from a manufacturer. Each time an order is placed, an ordering cost of $40 is incurred. The store pays $30 for each hand bag. The holding cost of $1 of inventory is 25 cents per year. (i.e. inventory holding rate is 25%). What is the economic order quantity?
Bombair Retail Store orders accent chairs 10 times per year from Axium Manufacturing. The reorder point...
Bombair Retail Store orders accent chairs 10 times per year from Axium Manufacturing. The reorder point without safety stock is 100 chairs. The following demand probabilities during the lead time is shown in the table: Demand During Lead Time Probability 0 0.1 100 0.1 200 0.2 300 0.4 400 0.2 The carrying cost is $30 per unit per year and the cost of a stockout is $70 per chair per year. How much safety stock should be carried?    [9...
You are considering buying a store. In order to better access your return on the investment,...
You are considering buying a store. In order to better access your return on the investment, you must ask the storeowner for the figures on days when a. ​Sales are high, costs are low b. ​Sales are low, costs are high c. ​Both sales and costs are high d. ​All of the above QUESTION 2 ​ At a carnival roulette wheel, a player can either win $10, $30, or $80. At what cost of play should the player expect the...
Store Location Purchasing Dept. Cost Merchandise Purchased No. of Purchase Orders Number of Suppliers Sheridan $575,000...
Store Location Purchasing Dept. Cost Merchandise Purchased No. of Purchase Orders Number of Suppliers Sheridan $575,000 $47,239,000 1708 61 Denver 1,226,000 102,364,000 2519 95 Salt Lake City 1,710,000 100,162,000 2506 139 Kansas City 881,000 95,760,000 1719 91 Omaha 1,544,000 51,466,000 2883 155 Milwaukee 794,000 50,631,000 647 75 Minnealops 1,341,000 84,753,000 2978 103 Phoenix 794,000 103,464,000 3761 117 Las Vegas 2,216,000 96,162,000 2584 73 Albaqurque 2,030,000 62,364 5497 176 Tucson 1,338,000 65,635,000 4347 130 Houston 856,000 88,524,000 2878 62 Oklahoma 1,122,000...
Takke Company orders 10 inventory part items on a purchase order. All 10 items are received...
Takke Company orders 10 inventory part items on a purchase order. All 10 items are received along with the bill. Takke Company opens a bill form and selects the vendor. What is the next step? Select one: A. Takke should add the items (including quantities) from the purchase order to the bill. B. Takke should close the bill form, open the purchase order, and select Create Bill. C. Takke should manually enter the items and quantities received in the item...
You just purchased the lockbox below to store a spare set of keys for your house....
You just purchased the lockbox below to store a spare set of keys for your house. It allows you to set a passcode using digits from 0 to 9: How it works: -Each digit is either ON or OFF, so pushing the same button twice removes it from the combination (as opposed to adding it a second time to the code). E.g. pressing 2, 7, 4 or pressing 2, 7, 3, 4, 3 would produce the same code: 274 -It...
You just purchased the lockbox below to store a spare set of keys for your house....
You just purchased the lockbox below to store a spare set of keys for your house. It allows you to set a passcode using digits from 0 to 9: How it works: -Each digit is either ON or OFF, so pushing the same button twice removes it from the combination (as opposed to adding it a second time to the code). E.g. pressing 2, 7, 4 or pressing 2, 7, 3, 4, 3 would produce the same code: 274 -It...
Create a report that lists customers with the total value of their orders from the database....
Create a report that lists customers with the total value of their orders from the database. Each row of the table should list the customer name and the total value of all orders. Rows should be in descending order according to the total. Just list the first 5 customers, those with the highest total orders. This part is more complex and, so, can be approached in many ways. You may decide to use simple queries and put the information together...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT