From 7ae4acc9de4d1f8749495b1aa3aec80a2fbec6b7 Mon Sep 17 00:00:00 2001 From: gzamudiop <146797898+gzamudiop@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:11:15 -0600 Subject: [PATCH 1/2] Create devcontainer.json --- .devcontainer/devcontainer.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..b4617c42 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + // Name this configuration + "name": "Codespace for Skills!", + "customizations": { + "vscode": { + "extensions": [ + "GitHub.copilot" + ] + } + } +} From 8ec4e3c4db156c563fe2365c1a959447aa9de9fc Mon Sep 17 00:00:00 2001 From: gzamudiop <146797898+gzamudiop@users.noreply.github.com> Date: Tue, 11 Feb 2025 17:37:39 +0000 Subject: [PATCH 2/2] aplication to calculate the taxes if the price is over than 50 dollars --- generatedWithCopilot | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 generatedWithCopilot diff --git a/generatedWithCopilot b/generatedWithCopilot new file mode 100644 index 00000000..2db55d6f --- /dev/null +++ b/generatedWithCopilot @@ -0,0 +1,17 @@ +def calculate_tax(price): + if price > 50: + tax = price * 0.19 + return tax + else: + return 0 + +def main(): + price = float(input("Enter the price: ")) + tax = calculate_tax(price) + if tax > 0: + print(f"The tax for the price ${price} is ${tax:.2f}") + else: + print("No tax for the price below or equal to $50") + +if __name__ == "__main__": + main() \ No newline at end of file