Question: Exercise 7 : Dollar Store A store sells all items for $ 1 . Customers buying 1 0 or more items receive a 5 %

Exercise 7: Dollar Store
A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there is 7.5% sales tax. Write a program that prompts the user for the number of items purchased and calculates the total cost before and after tax. Here is an example session:
Enter number of items: 10
Net Cost: 9.50
Tax: ,0.71
After tax: 10.21
1.Create a Python code file named M2Lab_Func_Rev_FirstLast.py (replace "FirstLast" with your own name)
2. Add a title comment block to the top of the new Python file using the following form
# A brief description of the project
# Date
# CSC121 m2Lab-Function Review
# Your Name
3. Complete Exercise 7 on page 85(Dollar Store).(60 points)
4. Convert the program to a "Modularized" menu driven program, the zipped folder linked below contains a modularized menu driven program.
The three functions you created in step 3(calcCost, displayLine and display) above are to be saved in a DIFFERENT file (so all 3 functions in ONE file). give the file a discriptive name.
The main file is to display the menu shown below and call the functions you saved in that other file, when/if the user chooses to calculate item cost.
Note the program should only stop if the usere enters 2, meaning the only when the user chooses to stop.
If a value other than 1 or 2 is entered, the program should display a statement that tells the user the value they entered is invalid and then display the menu again.
MenU--------------
Calculate Cost
Exit
 Exercise 7: Dollar Store A store sells all items for $1.

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 Databases Questions!