Write a python program that requests the user to input a number of cups. Then your code should distribute these cups to have the fewest number of containers. These containers have four different sizes: gallon, quart, pint, and cup size. Here how they related to each other
1 pint = 2 cups
1 quart = 2 pint
1 gallon = 4 quart
Your code should therefore ask for a number of cups and print the result for each of the containers in the format XX gallons, XX quarts, XX pints, XX cups where XX are integer quantities.
If the user has entered 9 as the number of cups. We would print:
0 gallons, 2 quarts, 0 pints, 1 cup
Please note that the s for the plural is removed when there is only 1 unit.
- The program should ask for an integer number and, if zero or positive, it should print the result. It should then prompt again a request for a new input number.
- If the user inputs a negative number, the program should halt.
- The purpose of this homework is for YOU to determine whether you have sufficient prerequisites to take this class.
- Regardless of the quality of your code, if you submit a solution for this exercise (i.e., a non-empty file) you will receive
100 pointsfor your first in-class activity. - To submit this homework, zip your source code (e.g., main.py) and submit this resulting file using the homework submission system. Make sure the zip file is smaller than 20MB. Use zip extensions, not ALZIP, rar, or other compressions.
- Only submissions made with the system will be considered (no direct emails to TA or Prof).
- You can re-submit as many times as you want before the deadline – we will consider your last submission.
- Submissions after the deadline are NOT accepted.
- If the file is too large the system won’t allow the submission. Remove from the zip file unnecessary files, and make sure to compress your images.
- Do not copy from the Internet or colleagues without attribution. Remember the honor code policy.

