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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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