Question: Python please. In this assignment you will be generating an informative invoice for the AM Coffee shop. This program will Print a greeting Welcome to
Python please. In this assignment you will be generating an informative invoice for the AM Coffee shop. This program will
- Print a greeting "Welcome to AM Coffee Shop"
- Print the company logo "AM" in large letters spanning at least 6 lines
- Ask the user for the day of the month (an integer between 1 and 31 - for simplicity we will assume all months are 31 days long) Assume user enters valid data.
- Ask the user for the quantity of coffee in pounds (an integer between 1 and 50). Assume user enters valid data.
- Read both the values and show a table showing costs (cost of coffee, shipping cost, tax amount and total cost) for three days: today, tomorrow and the day-after based on the following policy.
- Coffee shop charges $9.50 per pound
- Shipping charges are $0.65 per pound + $2.50 fixed cost for overhead
- Tax rate is variable depending on the day of the month. Tax percentage is number of days remaining in the month (assuming all months are 31 days long) divided by 5. e.g. on the 5th day of the month, the tax rate is (31 -5)/5 = 5.2 %. Tax is applied to only the cost of coffee
- Print all the quantities rounded to maximum of 2 decimal places.
- (Note that because floating number representation is not precise, your calculations may result in numbers that are different from the sample runs by a couple of cents.)
Requirements for writing the solution:
- Make sure you use:
- escape characters at least once while printing.
- use one of 'sep' or 'end' parameters in the print function at least once.
- use variables for line separators
- use following constructs / operators at least once:
- One of the compound assignment operators (+=, -=, *=, /=)
- * operator with a string and a number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
