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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
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.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY