Python program-Calculate amount due from tables

Assignment Help Basic Computer Science
Reference no: EM133193743

Description

Write a Python program that will calculate amount due from tables at a restaurant. At each table, your program should ask how many people are seated at the table. The program will then ask the user for the price of each meal purchased at the table (Assume that each person as ordered one meal). Calculate the subtotal, the sales tax, the tip, and final total for the bill at that table. Make sure you label the output for each table. Money should look like money. Process tables until there is a table with 0 people entered. Sales tax is 6% of the subtotal. The tip is also calculated from the subtotal. If number of people at a table is less than 5, it is 18%. If there is 5 or more people, the tip is 20%. 

Reference no: EM133193743

Questions Cloud

Software development methodology discussion : Which software-development methodology would be best if an organization needed to develop a software tool for a small group of users in the marketing department
Emotional intelligence and leadership development : University of cumberlands-Elliptic Curve requires these parameters (P, a, b, G, n, h). Can you explain what each parameter is?
Define each primary component of information system : Northern Virginia Community College-Of the five primary components of an information system. Define each primary component of the information system.
Computer science-architecture-about the numbering systems : Monroe College-Discuss why it is important in computer architecture field to learn about the numbering systems.
Python program-Calculate amount due from tables : SUNY at Buffalo-Write a Python program that will calculate amount due from tables at a restaurant.
Calculates the area of either Triangle or Rectangle : Write a java program which calculates the area of either a Triangle or a Rectangle. Write a java program to calculate employee pay using methods.
Operationalizing Big Data Analytics project : University of the Cumberlands-As part of the operationalizing a Big Data Analytics project,
Write a Python program : University of the Cumberlands-Write a Python (or R) program.Determines if X is prime or not, If X is not prime, compute and print the factors of that integer X.
European Journal of Information Systems : University of Campbellsille-Discussion of 20 research articles from European Journal of Information Systems and MIS Quarterly that support importance of topic

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Stock and how much will it ultimately cost

How much would each be willing to pay for the stock and how much will it ultimately cost?

  Laser printer and inkjet printer

Identify the make and model of one (1) laser printer and one (1) inkjet printer that are similarly priced. Evaluate the quality of each in terms of print speed (i.e., pages per minute), resolution (i.e., dots per inch), memory, color capability, d..

  Classes implemented without the generic syntax

The syntax of generic classes and methods was not added until version 5.0 of Java. Nonetheless, early versions of the language had collections classes such as an array list, or a linked list. How were those classes implemented without the generic sy..

  Health care industry should monitor

How do you identify the macroeconomic indicator or policy that the Health Care industry should monitor.

  Implementing enterprise resource planning system

Your business is expanding and you have hired employees to help. Would you consider implementing an enterprise resource planning (ERP) system

  Write a short code fragment to add the even numbers

1.Write a short code fragment to add the even numbers from 1 to 10 using an 8086 processor and the instructions given in the lecture. 2.Search the web for the programming model for a Zilog Z80 microprocessor and compare it with the programming m..

  Explain employment challenge in digital era

Explain the employment challenge in the digital era. Reflect on the various challenges are present in the digital era

  Calculate a z test to make a decision about a sample

Calculate a z test to make a decision about a sample.

  Competition for new and existing licenses

Many cities regulate the number of taxi licenses, and there is a great deal of competition for both new and existing licenses. Suppose that a city has decided

  Add function with two parameters num1 and num2

(1) An add function with two parameters num1 and num2, it will calculate and print num1+num2.

  True identities of online trolls and cyberbullies

Describe why it should be easy to expose the true identities of online trolls and cyberbullies.

  Database concepts-keller graduate school of management

Almost every tool/technique that exists in a relational database (beyond Dr. Codd's original design) is there to solve a problem.

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