Write python program A store sells a 70 milliliter (ml) of alcohol gel by buying a gallon of alcohol gel and putting it in a portable bottle. This packing process starts from taking orders for the...

Write python program A store sells a 70 milliliter (ml) of alcohol gel by buying a gallon of alcohol gel and putting it in a portable bottle. This packing process starts from taking orders for the number of portable alcohol gel bottles (not less than 55 bottles), and then calculates the total amount of alcohol gel needed compared to the required amount of alcohol gel. Order a gallon Get as few gallons as possible but as close as possible. and the remaining alcohol content to a minimum The gallon alcohol gel that the shop can buy is available in 2 sizes: 0.5 liter gallon, priced at 59 baht per gallon. 3.5 liter gallon, price 409 baht per gallon. Write a program to calculate the number of gallons of gallons of alcohol gel you should order. The amount received is a discount. Amount to be paid after discount when purchasing alcohol gel If the fraction of a gallon of alcohol gel is not full, it is counted as 1 gallon. If the number of gallons of the same size required is 6 gallons or more, the shop will receive a discount of 15% of the regular price of the gallon size. that import data Required number of bottles of portable alcohol gel (integer) export data Number of gallons of alcohol gel, size 3.5 liters (integer) Number of gallons of alcohol gel, size 0.5 liters (integer) discount amount In the case of purchasing 6 gallons of alcohol gel of the same size or more (real number, 2 decimal places, and commas every 3 digits) Total amount paid for alcohol gel purchase after discount (real number, 2 decimal places, comma every 3 digits) Requirements Check the order number of bottles of portable alcohol gel. If there are less than 55 bottles, we will wait for new orders. Want to buy a gallon of alcohol gel as little as possible. by selecting the gallon with the largest volume first. If you purchase 6 gallons of the same gallon of alcohol gel, you will receive a 15% discount on the regular price of that gallon. A fraction of a gallon of non-alcoholic gel is calculated as 1 gallon. Use the Named constant in the program. The program will ask the user if they want to recalculate according to the run example.
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here