Question 2: Operator Fastfood receipt

🍔 Fast Food Receipt

Use: import task_operators_02

Kofi just ordered food at a restaurant. He ordered 2 burgers at 8 dollars each, and 1 soda for 2.5 dollars. The restaurant needs a printed receipt showing every item and the total price. Write a Python program that stores Kofi’s order and prints a 4-line receipt.
  • Store the customer’s name in a variable called customer and set it to “Kofi”.
  • Store the number of burgers in a variable called burger_count and set it to 2.
  • Store the price of one burger in a variable called burger_price and set it to 8.
  • Store the number of sodas in a variable called soda_count and set it to 1.
  • Store the price of one soda in a variable called soda_price and set it to 2.5.
  • Calculate the total price of the burgers and store it in burger_total.
  • Calculate the total price of the sodas and store it in soda_total.
  • Add both totals into a variable called grand_total.
  • Print exactly 4 lines, each with a separate print() call, in this format:
    Line 1: Customer: <customer>
    Line 2: Burgers: <burger_total>
    Line 3: Sodas: <soda_total>
    Line 4: Grand Total: <grand_total>
    Example:
    Customer: Kofi
    Burgers: 16
    Sodas: 2.5
    Grand Total: 18.5
    Note: Use a separate print() call for each line. Do not use \n inside one print.
Write what you are looking for, and press enter to begin your search!