You are working on an e-commerce project to write a JavaScript function that calculates the total price of items in a cart, applying discounts and taxes, while handling edge cases like empty carts or invalid inputs. Copilot suggests overly simplistic solutions that lack discounts, taxes, or input validation. Which of the following prompts best applies prompt crafting best practices to get the correct result from GitHub Copilot?