Programming

posted by .

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

  • Programming -

    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.

  • Programming -

    ghyuj

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. CIS Design and Programming

    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 percent tip and a 7 percent sales tax. Display …
  2. Computer Programming Design

    Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county tax. Assume the state sales tax is 4 percent (.04) and the county tax is 2 percent (.02). The program should …
  3. Computer Programming Design

    I really need someone to help me with this.I post this last week and I did not respond to it hopefully someone will respond Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask …
  4. Programming

    Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of days. …
  5. Programming

    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 the calculate the amount of a 15 percent tip and 7 percent sales tax. Display …
  6. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 …
  7. Intro to programming

    Tip, Tax and Total question? Design a program that calculates the total amount of a meal purchased at a restaurant in raptor, the program has to ask user the charge of food, calculate the amount of a 15 percent tip, and 7 percent sales
  8. programming

    Assume the input to be the charge for the food, draw a flowchart that will compute the total amount of a meal purchased at a restaurant. The output should be the charge for the food, the amount of a 15 percent tip, the amount of the …
  9. Computer Programming

    Need Python pseudocode and program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any)and the total amount of the purchase after the discount. Software co. …
  10. intro to computer programming

    Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Your program should use a loop …

More Similar Questions