Untitled
unknown
plain_text
a year ago
1.4 kB
0
Indexable
Never
class Website: def __init__(self): self.cart = [] self.total_price = 0 def display_menu(self): print("Welcome to PCH - Premium Lady Clothing") print("1. Browse Clothing") print("2. View Cart") print("3. Apply Discount Code") print("4. Place Order") print("5. Exit") def browse_clothing(self): # Implement clothing browsing functionality here pass def view_cart(self): # Display items in the cart and their prices pass def apply_discount_code(self): # Implement code for applying discount pass def place_order(self): # Calculate the final price with discount and handle order placement pass def run(self): while True: self.display_menu() choice = input("Enter your choice: ") if choice == "1": self.browse_clothing() elif choice == "2": self.view_cart() elif choice == "3": self.apply_discount_code() elif choice == "4": self.place_order() elif choice == "5": print("Thank you for shopping with PCH - Premium Lady Clothing!") break else: print("Invalid choice. Please try again.") if __name__ == "__main__": website = Website() website.run()