Ask questions and get helpful answers.

Language - PYTHON

Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales tax. Display each of these amounts and the total.

Please help, I have no idea where to begin. Thanks

  1. 👍
  2. 👎
  3. 👁
  4. ℹ️
  5. 🚩
2 answers
  1. Start with a pseudocode:

    Display prompt for food charge
    Ch <-input charge
    Tip <- Ch*0.15
    Tax <- Ch*0.07
    Display Ch
    Display Tip
    Display Tax
    Display Ch+Tip+Tax

    The next step is to code in Python.
    Each line above may or may not correspond to one line of Python code.

    1. 👍
    2. 👎
    3. ℹ️
    4. 🚩
  2. ghyuj

    1. 👍
    2. 👎
    3. ℹ️
    4. 🚩

Answer this Question

Similar Questions

  1. Math

    28. Molli purchased 8 apples for $2.96. While looking at her receipt, Molli divided $2.96 by 8. Why might Molli perform this calculation? (1 point) in order to find the total number of apples purchased in order to find out how much she paid per apple in

  2. Statistics

    Applying what you have learned.... When politicians make claims that we need to spend a large amount of money to achieve a goal, the claim is often made without legitimate evidence to support a claim that a given program will have a particular result.

  3. Programming logic and design

    Design a program that lets the user enter the total rainfall for each 12 months into an array. The program should calculate and display the total rainfall for the year the average monthly rainfall, and the month with the highest and lowest amounts. In

  4. computer science

    I need help with my Java homework! Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display

  5. Algebra

    1.What is the simplified form of the following expression? 13[6^2�€(5^2-4^2)+9] A.169 B.585*** C.181 D.26 2.What is the simplified form of the expression? 6xyz/2xz A.3 B.3y C.3xyz*** D.3x^2yz^2 3.In a football game. A running back ran for -7 and -5 on

  6. Computer programming

    Submit pseudocode for the following programming exercise: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: - Make sure the number of fat grams and calories are not less

  7. programming

    Design a flowchart or pseudocode for a program that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third.

  8. programming

    create the logic for a program that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. create a separate method to do the calculation and return the result to be displayed.

  9. english

    If people are ignored because of their inability to speak standard English, what have they encountered? a. language bias b. language variety c. language prejudice d. language snobbery Are these real phrases? I don't know where to look them up to try to

  10. Computing

    Write pseudocode Program accepts a user's monthly pay, rent, and grocery bills and displays the amount available for spending (which might be negative) Display the pay, total bills and remaining amount.

Still need help?

You can ask a new question or browse existing questions.