Write a program that calculates the total amount

Assignment Help Programming Languages
Reference no: EM133383442

Programming Exercises:

Do Programming Exercise - Tip, Tax, and Total.

Write 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, then calculate the amounts of an 18 percent tip and a 7 percent sales tax. Display each of these amounts and the total.

After your read the program directions, for those of you wondering where to start...remember INPUT, PROCESSING, OUTPUT

Design - Think of what variables you will need. Perhaps write them out on scratch paper. Make your variables have MEANINGFUL names so that you know WHY you are creating them and the purpose they will serve.

Below are design instructions. Once you have completed this assignment you will upload the text file with your Python code. Also, in comments put in your repl.it link from browser like you did for program 1.99

MAKE SURE you put Comments at top of program, listing your name, Name of your program, and a brief description of your program.

INPUT SECTION

The program should ask the user to input the charge for food.

PROCESSING SECTION

Your program will calculate the amount for an 18 percent tip and 7 percent sales tax. NOTE: The tip is calculated BEFORE you add in the tax. In other words, if I had a 10.00 charge for food, my tip would be 18% of 10.00, which is 1.80

Tax is ALSO calculated on JUST the amount of food purchased. Again, if I had bought 10.00 worth of food, tax of 7% of 10.00 would be .70 cents

OUTPUT

Your program will display the tip, tax and then the grand total. I want 2 digits of precision to the right of decimal point for output

Reference no: EM133383442

Questions Cloud

Should a walk-out be viewed as patient abandonment : Should a walk-out [by nurses] be viewed as patient abandonment? Why or why not? Identify at least one primary law that supports your answer.
What did her father know what does she now understand : Nikole Hannah-Jones claims, "The United States is a nation founded on both an ideal and a lie." What does she mean? Do you agree with her statement?
Develop the risk reviews and reporting section : Develop the Risk Reviews and Reporting section of the Risk Management Plan, based on the project size previously determined. Define the Probability and Impacts
What a child learns through socialization : ist some ways that a family's social class might influence what a child learns through socialization.
Write a program that calculates the total amount : Write 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
Describe how evidenced based nursing concepts theories : Describe how evidenced based nursing concepts theories and best practices can be applied to improve curriculum development and provide examples.
Analyze these variables within a common framework : The relation between interest rates, unemployment, and inflation is clearly stated in the Federal Reserve document accompanying these instructions
How will the legalization of cannabis affect the crime rate : How will the legalization of cannabis affect the crime rate in major cities and How will the legalization of cannabis affect the crime rate in major cities
Integration of distance delivery into bachelor of science : This is in regard to the change in the delivery of registered nurse to consider further integration of distance delivery into Bachelor of Science in Nursing.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program that calculate and prints the monthly paycheck

Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15%.

  Specific changes made for different countries-sites directed

Why were these specific changes made for different countries at whom the sites were directed? Is there anything else you would consider changing.

  Implement the curried functions in ocaml

Goal of this project is to get you familiar with programming in OCaml. You will have to write a number of small functions - write a helper function which will add another 3-6 lines.

  Write a program that reads a list of integers

Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither.

  Program development cycle

As the text explains, there are seven (7) steps in the Program Development Cycle. Identify which of the steps that you believe takes the most effort. Provide a rationale to support your response

  Demonstration of networking capabilities

Create an annotated bibliography: this is simply a list of useful sources you found where each has an associated paragraph summarizing why the source is useful

  Displays the total amount of money entered into slot machine

The program will ask whether the user wants to play again. If so, these steps are repeated. If not, the program displays the total amount of money entered into the slot machine and the total amount the user won.

  Write a statement that prints the message recall

Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. Given a variable modelYear - Write a statement that prints the message "Recall" to standard output if the value of modelYear falls within those two ranges.

  Explaining steps to execute branch instruction

Sketch a flow chart which carefully explains steps that little man follows to execute a branch instruction.

  Write program that allow a user to enter stuin thident names

Write a program that would allow a user to enter stuIn thident names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered.

  Write a code to locate and rank keywords

You are working on the custom Web application to design document library for client. Write code to locate and rank the keywords. You have been given sample document to use for testing.

  Design and write program using functions to calculates area

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd