1
votes

Note: When accuracy is essential, floats are not used to represent currency due to rounding and accumulation errors. Python provides several primitives specifically developed to implement financial applications. However, these topics are beyond the scope of this lab.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('%0.2f' % your_value)

Note: The output shown below prints a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs.

(PA #2) Prompt the user to input two food item names, prices, and quantities, provided one at a time as shown in the example below. After each item is entered, print the itemized receipt containing for the entire transaction up to that point. After the second item has been entered, the user should also be prompted to determine how much gratuity should be added. The final three outputs should show the cost of gratuity, the amount added to the total by a 6% tax, and the grand total (total cost of items + the gratuity). Gratuity should be provided as a decimal value representing the percentage gratuity, e.g., 15 = 15% gratuity, or 0.15 *total price. To output the % symbol, enter %%. Tax should be calculated on the pre-gratuity total. ( enter image description here

Please I am desprite. I have been gone from class for medical reasons and have no idea whhat I am doing. If anyone could help that would be great Has to be coded in python

"Help" implies effort on both sides. What is your attempt so far? If there isn't one, it's not help you're seeking; you're just asking someone to do it for youroganjosh
If you have a medical problem impacting your attendance in class, the right place to bring this up is to your academic department, not the internet.Tom W