Question: This should be in python. You work in a skate shop and have been tasked with coding a program to calculate the cost of purchasing

This should be in python.
You work in a skate shop and have been tasked with coding a program to calculate the cost of purchasing skates. The cost of the purchase can be determined by the type of skates and the number of pairs of skates purchased. Use the table below to determine the cost of the purchase:
Type of skates Number of pairs Price per pair of skates
Roller Skates 1-4 $154.75
Roller Skates 5+ $137.50
Roller Blades 1-4 $229.95
Roller Blades 5+ $188.95
*Price per pairs of skate values should be stored within constants
The program should:
1. Utilize functions for menu display, data entry, calculations and output.
2. Prompt the user with a menu that asks which type of skates they are purchasing. Validate menu choices so no invalid choices are permitted
3. Ask the user how many pairs of skates they are buying. Number of pairs of skates should not be less than 1.
4. Determine the total cost of the purchase using price per pair of skate constants.
5. Also, add a 6.75% sales tax on to the final cost.
6. Display the subtotal, tax, and the total price of the purchase with correct formatting for currency.
7. Sample output is for formatting purposes only, your totals will be different.
Sample run of the program:
1. Roller Skates
2. Roller Blades
enter choice of skates 1
how many pair of Roller Skates 4
The customer purchased 4 pair(s) of Roller Skates
The cost is 619.00
The sales tax is 41.78
The total charge is 660.78

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!