Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 7 : Dollar Store A store sells all items for $ 1 . Customers buying 1 0 or more items receive a 5 %
Exercise : Dollar Store
A store sells all items for $ Customers buying or more items receive a discount. Additionally, there is 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:
Net Cost:
Tax:
After tax:
Create a Python code file named MLabFuncRevFirstLast.py replace "FirstLast" with your own name
Add a title comment block to the top of the new Python file using the following form
# A brief description of the project
# Date
# CSC mLabFunction Review
# Your Name
Complete Exercise on page Dollar Store points
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 calcCost displayLine and display above are to be saved in a DIFFERENT file so all 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, whenif the user chooses to calculate item cost.
Note the program should only stop if the usere enters meaning the only when the user chooses to stop.
If a value other than or 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started