Question: This activity is worth 1 0 total points This lesson's Group Activities are ( do both ) : A customer is in a store to

This activity is worth 10 total points
This lesson's Group Activities are (do both):
A customer is in a store to purchase 3 items. Write a program which asks for the sales tax and the price of each item, then displays:
the subtotal of the sale
the total amount of tax to be collected
the total amount the customer must pay
A family is dining out at a kid-friendly restaurant. Write a program which asks the user to enter the total cost of food and drink, then calculates the total bill including an appropriate tip and a 6.5% sales tax rate. Display the subtotal, the tip, the tax, and the total amount of the bill.
Helpful Hint: When you are running your program using the console, it will automatically close when the program completes. Often times, this means you never get to see your output statements because the console closes right away. When you are trying to debug - or trying to make a useful application for your clients - this is really, really annoying. A simple way to keep the console open is to end your applications with something similar to
print(input('
Hit Enter to Close
'))
This will keep the console open at the end of the program until you (or your end user) hits the Enter key. It also helps your instructor grade your programs much easier/quicker (wink, wink).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!