Question: (IN PYTHON)! Create a program that: - Creates a sales receipt, displays the receipt entries and totals, and save the receipt entries to a file
Create a program that: - Creates a sales receipt, displays the receipt entries and totals, and save the receipt entries to a file Prompt the user to enter the - Item Name - Item Quantity - Item Price Display the item name, the quantity, and item price, and the extended price (i.e. Item Quantity multiplied by Item Price) after the entry is made Save the item name, quantity, item price, and extended price to a file - When you create the file, prompt the user for the name they want to give the file - Separate the items saved with commas - Each entry should be on a separate line in the text file Ask the user if they have more items to enter - Once the user has finished entering items Close the file with the items entered Display the sales total If the sales total is more than $100 - Calculate and display a 10% discount Calculate and display the sales tax using 8% as the sales tax rate - The sales tax should be calculated on the sales total after the discount Display the total for the sales receipt Save the program and submit it to this site for grading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
