Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Challenge: Split Check Calculator in python Learning Objectives: 1. Apply variables and expressions to problem solving. 2. Write a program that takes input from

Project Challenge: Split Check Calculator in python

Learning Objectives: 1. Apply variables and expressions to problem solving. 2. Write a program that takes input from the user. 3. Apply sequence to problem solving.

DIRECTIONS Write a program to calculate the amount each person must pay toward the bill and toward the tip, for a group of friends who are eating out together. Since you are all friends, it is okay to split the costs evenly.

Your program should take as input: 1. The restaurant bill (without tax or tip) as a floating point number 2. The sales tax rate as a floating point number (for example: an 8% tax rate would be 0.08) 3. The level of service as an integer between 0 and 10

0 is terrible (0% tip), 5 is average (15% tip), and 10 is excellent (30% tip)

4. The number of friends to split the check among

Your program should output: 1. The amount each friend should pay toward the bill (with tax) 2. The amount each friend should leave in tip

tip should be calculated on the pre-tax restaurant bill

3. The total amount each diner should pay, including restaurant bill, sales tax, and tip 4. The overall total, which includes the restaurant bill, the sales tax, and the tip.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

1.Which are projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago