From d09e95f5aa3aa002feebd5996eb4ef0bc5c6cb64 Mon Sep 17 00:00:00 2001 From: Mukul Palol Date: Mon, 11 Dec 2023 11:01:38 +0530 Subject: [PATCH 1/8] renamed in problem statement 1 --- .../BasicUtility/BasicUtility.csproj | 10 ++ .../BasicUtility/BasicUtility.sln | 25 +++++ Problem Statement 1/BasicUtility/Program.cs | 16 +++ Problem Statement 1/BasicUtility/Utility.cs | 21 ++++ Problem Statement 1/Problem Statement 1.java | 27 ++++++ Problem Statement 2/Problem Statement 2.java | 97 +++++++++++++++++++ 6 files changed, 196 insertions(+) create mode 100644 Problem Statement 1/BasicUtility/BasicUtility.csproj create mode 100644 Problem Statement 1/BasicUtility/BasicUtility.sln create mode 100644 Problem Statement 1/BasicUtility/Program.cs create mode 100644 Problem Statement 1/BasicUtility/Utility.cs create mode 100644 Problem Statement 1/Problem Statement 1.java create mode 100644 Problem Statement 2/Problem Statement 2.java diff --git a/Problem Statement 1/BasicUtility/BasicUtility.csproj b/Problem Statement 1/BasicUtility/BasicUtility.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/Problem Statement 1/BasicUtility/BasicUtility.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/Problem Statement 1/BasicUtility/BasicUtility.sln b/Problem Statement 1/BasicUtility/BasicUtility.sln new file mode 100644 index 0000000..38d18c5 --- /dev/null +++ b/Problem Statement 1/BasicUtility/BasicUtility.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUtility", "BasicUtility.csproj", "{B8CDB4A8-7953-4A02-B58A-2C0648E47496}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DE056EF6-5A2E-4905-AF93-E78C4D4A62C3} + EndGlobalSection +EndGlobal diff --git a/Problem Statement 1/BasicUtility/Program.cs b/Problem Statement 1/BasicUtility/Program.cs new file mode 100644 index 0000000..e7f0cd2 --- /dev/null +++ b/Problem Statement 1/BasicUtility/Program.cs @@ -0,0 +1,16 @@ +namespace BasicUtility +{ + internal class Program + { + static void Main(string[] args) + { + Utility utilityObject = new Utility(); + utilityObject.IntegerValue = 10; + utilityObject.DoubleValue = 20.5; + utilityObject.StringValue = "hello"; + + utilityObject.calculateSum(utilityObject.IntegerValue, 5); + utilityObject.convertToUpperCase("world"); + } + } +} diff --git a/Problem Statement 1/BasicUtility/Utility.cs b/Problem Statement 1/BasicUtility/Utility.cs new file mode 100644 index 0000000..0b97434 --- /dev/null +++ b/Problem Statement 1/BasicUtility/Utility.cs @@ -0,0 +1,21 @@ +namespace BasicUtility +{ + public class Utility + { + public int IntegerValue { get; set; } + public double DoubleValue { get; set; } + public string StringValue { get; set; } + + public void calculateSum(int input1, int input2) + { + int sum = input1 + input2; + Console.WriteLine("Sum: " + sum); + } + + public void convertToUpperCase(string inputString) + { + StringValue = inputString.ToUpper(); + Console.WriteLine("Uppercase String: " + StringValue); + } + } +} diff --git a/Problem Statement 1/Problem Statement 1.java b/Problem Statement 1/Problem Statement 1.java new file mode 100644 index 0000000..49f56f0 --- /dev/null +++ b/Problem Statement 1/Problem Statement 1.java @@ -0,0 +1,27 @@ +public class xyz { + int a; + double b; + String c; + + public void m1(int x, int y) { + int z = x + y; + System.out.println("Result: " + z); + } + + public void m2(String p) { + c = p.toUpperCase(); + System.out.println("Updated String: " + c); + } +} + +public class abc { + public static void main(String[] args) { + xyz obj = new xyz(); + obj.a = 10; + obj.b = 20.5; + obj.c = "hello"; + + obj.m1(obj.a, 5); + obj.m2("world"); + } +} \ No newline at end of file diff --git a/Problem Statement 2/Problem Statement 2.java b/Problem Statement 2/Problem Statement 2.java new file mode 100644 index 0000000..c0f57f0 --- /dev/null +++ b/Problem Statement 2/Problem Statement 2.java @@ -0,0 +1,97 @@ +import java.util.ArrayList; +import java.util.List; +import java.util.Scanner; + +class a { + private String b; + private double c; + private int d; + + public a(String b, double c, int d) { + this.b = b; + this.c = c; + this.d = d; + } + + public String e() { + return b; + } + + public double f() { + return c; + } + + public int g() { + return d; + } + + public void h(int i) { + this.d = i; + } +} + +class j { + private List k; + + public j() { + this.k = new ArrayList<>(); + } + + public void l(a m) { + k.add(m); + } + + public List n() { + return k; + } +} + +public class o { + public static void main(String[] p) { + j q = new j(); + Scanner r = new Scanner(System.in); + + while (true) { + System.out.println("\nInv Mgmt System"); + System.out.println("1. Add Prod"); + System.out.println("2. Display Inv"); + System.out.println("3. Exit"); + System.out.print("Enter your choice: "); + + int s = r.nextInt(); + + switch (s) { + case 1: + System.out.print("Enter prod name: "); + String t = r.next(); + System.out.print("Enter prod price: "); + double u = r.nextDouble(); + System.out.print("Enter prod qty: "); + int v = r.nextInt(); + + a w = new a(t, u, v); + q.l(w); + + System.out.println("Prod added successfully!"); + break; + + case 2: + System.out.println("\nCurrent Inv:"); + List x = q.n(); + for (a y : x) { + System.out.println("Name: " + y.e() + + ", Price: $" + y.f() + + ", Quantity: " + y.g()); + } + break; + + case 3: + System.out.println("Exiting program. Goodbye!"); + System.exit(0); + + default: + System.out.println("Invalid choice. Please enter a valid option."); + } + } + } +} \ No newline at end of file From 88a29c209ecc3f57e5ec14dee18054fb03ae2a7c Mon Sep 17 00:00:00 2001 From: Mukul Palol Date: Mon, 11 Dec 2023 12:07:11 +0530 Subject: [PATCH 2/8] renamed code of problem statement 2 --- .../InventoryManagementSystem.csproj | 10 ++++ .../InventoryManagementSystem.sln | 25 +++++++++ .../InventoryManager.cs | 22 ++++++++ .../InventoryManagementSystem/Product.cs | 16 ++++++ .../InventoryManagementSystem/Program.cs | 56 +++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj create mode 100644 Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln create mode 100644 Problem Statement 2/InventoryManagementSystem/InventoryManager.cs create mode 100644 Problem Statement 2/InventoryManagementSystem/Product.cs create mode 100644 Problem Statement 2/InventoryManagementSystem/Program.cs diff --git a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln new file mode 100644 index 0000000..484a408 --- /dev/null +++ b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InventoryManagementSystem", "InventoryManagementSystem.csproj", "{65E3258C-D102-4C16-BBAF-650EACE61D79}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {65E3258C-D102-4C16-BBAF-650EACE61D79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {65E3258C-D102-4C16-BBAF-650EACE61D79}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65E3258C-D102-4C16-BBAF-650EACE61D79}.Release|Any CPU.ActiveCfg = Release|Any CPU + {65E3258C-D102-4C16-BBAF-650EACE61D79}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8B6C89EB-5FBB-48B7-A3C1-F2C8DDCA0D27} + EndGlobalSection +EndGlobal diff --git a/Problem Statement 2/InventoryManagementSystem/InventoryManager.cs b/Problem Statement 2/InventoryManagementSystem/InventoryManager.cs new file mode 100644 index 0000000..8291675 --- /dev/null +++ b/Problem Statement 2/InventoryManagementSystem/InventoryManager.cs @@ -0,0 +1,22 @@ +namespace InventoryManagementSystem +{ + public class InventoryManager + { + private List inventory; + + public InventoryManager() + { + this.inventory = new List(); + } + + public void AddProduct(Product product) + { + inventory.Add(product); + } + + public List GetInventory() + { + return inventory; + } + } +} diff --git a/Problem Statement 2/InventoryManagementSystem/Product.cs b/Problem Statement 2/InventoryManagementSystem/Product.cs new file mode 100644 index 0000000..0fe89eb --- /dev/null +++ b/Problem Statement 2/InventoryManagementSystem/Product.cs @@ -0,0 +1,16 @@ +namespace InventoryManagementSystem +{ + public class Product + { + public string Name { get; set; } + public double Price { get; set; } + public int Quantity { get; set; } + + public Product(string name, double price, int quantity) + { + Name = name; + Price = price; + Quantity = quantity; + } + } +} diff --git a/Problem Statement 2/InventoryManagementSystem/Program.cs b/Problem Statement 2/InventoryManagementSystem/Program.cs new file mode 100644 index 0000000..f09ce7b --- /dev/null +++ b/Problem Statement 2/InventoryManagementSystem/Program.cs @@ -0,0 +1,56 @@ +namespace InventoryManagementSystem +{ + internal class Program + { + static void Main(string[] args) + { + InventoryManager inventoryManager = new InventoryManager(); + + while (true) + { + Console.WriteLine("\nInventory Management System"); + Console.WriteLine("1. Add Product"); + Console.WriteLine("2. Display Inventory"); + Console.WriteLine("3. Exit"); + Console.Write("Enter your choice: "); + + int choice = Convert.ToInt32(Console.ReadLine()); + + switch (choice) + { + case 1: + Console.Write("Enter product name: "); + string productName = Console.ReadLine(); + Console.Write("Enter product price: "); + double productPrice = Convert.ToDouble(Console.ReadLine()); + Console.Write("Enter product quantity: "); + int productQuantity = Convert.ToInt32(Console.ReadLine()); + + Product product = new Product(productName, productPrice, productQuantity); + inventoryManager.AddProduct(product); + + Console.WriteLine("Product added successfully!"); + break; + + case 2: + Console.WriteLine("\nCurrent Inventory:"); + List currentInventory = inventoryManager.GetInventory(); + foreach (Product currentProduct in currentInventory) + { + Console.WriteLine($"Name: {currentProduct.Name}, Price: ${currentProduct.Price}, Quantity: {currentProduct.Quantity}"); + } + break; + + case 3: + Console.WriteLine("Exiting program. Goodbye!"); + Environment.Exit(0); + break; + + default: + Console.WriteLine("Invalid choice. Please enter a valid option."); + break; + } + } + } + } +} From f70354a9e17d9e76ca3c55de37435d7cdd9c4db3 Mon Sep 17 00:00:00 2001 From: mukulpalol16 <148962875+mukulpalol16@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:17:54 +0530 Subject: [PATCH 3/8] Deleted file from Problem Statement 1 --- Problem Statement 1/BasicUtility/BasicUtility.csproj | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 Problem Statement 1/BasicUtility/BasicUtility.csproj diff --git a/Problem Statement 1/BasicUtility/BasicUtility.csproj b/Problem Statement 1/BasicUtility/BasicUtility.csproj deleted file mode 100644 index 74abf5c..0000000 --- a/Problem Statement 1/BasicUtility/BasicUtility.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - From 0b99092a3c3a839d28c4af56285f971be00c262e Mon Sep 17 00:00:00 2001 From: mukulpalol16 <148962875+mukulpalol16@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:18:18 +0530 Subject: [PATCH 4/8] Deleted file from Problem Statement 1 --- .../BasicUtility/BasicUtility.sln | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 Problem Statement 1/BasicUtility/BasicUtility.sln diff --git a/Problem Statement 1/BasicUtility/BasicUtility.sln b/Problem Statement 1/BasicUtility/BasicUtility.sln deleted file mode 100644 index 38d18c5..0000000 --- a/Problem Statement 1/BasicUtility/BasicUtility.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34330.188 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUtility", "BasicUtility.csproj", "{B8CDB4A8-7953-4A02-B58A-2C0648E47496}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B8CDB4A8-7953-4A02-B58A-2C0648E47496}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {DE056EF6-5A2E-4905-AF93-E78C4D4A62C3} - EndGlobalSection -EndGlobal From b302487d48415d85f4aa90c60479184230caa7b7 Mon Sep 17 00:00:00 2001 From: mukulpalol16 <148962875+mukulpalol16@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:19:00 +0530 Subject: [PATCH 5/8] Deleted file from Problem Statement 2 --- .../InventoryManagementSystem.sln | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln diff --git a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln deleted file mode 100644 index 484a408..0000000 --- a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34330.188 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InventoryManagementSystem", "InventoryManagementSystem.csproj", "{65E3258C-D102-4C16-BBAF-650EACE61D79}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {65E3258C-D102-4C16-BBAF-650EACE61D79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {65E3258C-D102-4C16-BBAF-650EACE61D79}.Debug|Any CPU.Build.0 = Debug|Any CPU - {65E3258C-D102-4C16-BBAF-650EACE61D79}.Release|Any CPU.ActiveCfg = Release|Any CPU - {65E3258C-D102-4C16-BBAF-650EACE61D79}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {8B6C89EB-5FBB-48B7-A3C1-F2C8DDCA0D27} - EndGlobalSection -EndGlobal From c0ea3877ccf6d201a4a0674a6486d50bb539c1ae Mon Sep 17 00:00:00 2001 From: mukulpalol16 <148962875+mukulpalol16@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:19:36 +0530 Subject: [PATCH 6/8] Deleted file from Problem Statement 2 --- .../InventoryManagementSystem.csproj | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj diff --git a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj b/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj deleted file mode 100644 index 74abf5c..0000000 --- a/Problem Statement 2/InventoryManagementSystem/InventoryManagementSystem.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - From d1b6d9fe98fe32ca76fc7ca417249f2c467cb34d Mon Sep 17 00:00:00 2001 From: Mukul Palol Date: Mon, 18 Dec 2023 16:54:05 +0530 Subject: [PATCH 7/8] Refactored code of problem statement 1 --- Problem Statement 1/BasicUtility/Program.cs | 10 +++++----- Problem Statement 1/BasicUtility/Utility.cs | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Problem Statement 1/BasicUtility/Program.cs b/Problem Statement 1/BasicUtility/Program.cs index e7f0cd2..6ecc5c6 100644 --- a/Problem Statement 1/BasicUtility/Program.cs +++ b/Problem Statement 1/BasicUtility/Program.cs @@ -5,12 +5,12 @@ internal class Program static void Main(string[] args) { Utility utilityObject = new Utility(); - utilityObject.IntegerValue = 10; - utilityObject.DoubleValue = 20.5; - utilityObject.StringValue = "hello"; + utilityObject.Operand = 10; + utilityObject.DecimalValue = 20.5; + utilityObject.ConvertedText = "hello"; - utilityObject.calculateSum(utilityObject.IntegerValue, 5); - utilityObject.convertToUpperCase("world"); + utilityObject.CalculateSum(utilityObject.Operand, 5); + utilityObject.ConvertToUpperCase("world"); } } } diff --git a/Problem Statement 1/BasicUtility/Utility.cs b/Problem Statement 1/BasicUtility/Utility.cs index 0b97434..9bb989d 100644 --- a/Problem Statement 1/BasicUtility/Utility.cs +++ b/Problem Statement 1/BasicUtility/Utility.cs @@ -2,20 +2,20 @@ { public class Utility { - public int IntegerValue { get; set; } - public double DoubleValue { get; set; } - public string StringValue { get; set; } + public int Operand { get; set; } + public double DecimalValue { get; set; } + public string ConvertedText { get; set; } - public void calculateSum(int input1, int input2) + public void CalculateSum(int input1, int input2) { int sum = input1 + input2; Console.WriteLine("Sum: " + sum); } - public void convertToUpperCase(string inputString) + public void ConvertToUpperCase(string inputText) { - StringValue = inputString.ToUpper(); - Console.WriteLine("Uppercase String: " + StringValue); + ConvertedText = inputText.ToUpper(); + Console.WriteLine("Uppercase String: " + ConvertedText); } } } From aaedf7bd9b95aa616f8c5195f7cbc33812bda796 Mon Sep 17 00:00:00 2001 From: Mukul Palol Date: Mon, 18 Dec 2023 17:04:11 +0530 Subject: [PATCH 8/8] Refactored code of problem statement 2 --- .../InventoryManagementSystem/Program.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Problem Statement 2/InventoryManagementSystem/Program.cs b/Problem Statement 2/InventoryManagementSystem/Program.cs index f09ce7b..7a9c1c4 100644 --- a/Problem Statement 2/InventoryManagementSystem/Program.cs +++ b/Problem Statement 2/InventoryManagementSystem/Program.cs @@ -20,13 +20,13 @@ static void Main(string[] args) { case 1: Console.Write("Enter product name: "); - string productName = Console.ReadLine(); + string name = Console.ReadLine(); Console.Write("Enter product price: "); - double productPrice = Convert.ToDouble(Console.ReadLine()); + double price = Convert.ToDouble(Console.ReadLine()); Console.Write("Enter product quantity: "); - int productQuantity = Convert.ToInt32(Console.ReadLine()); + int quantity = Convert.ToInt32(Console.ReadLine()); - Product product = new Product(productName, productPrice, productQuantity); + Product product = new Product(name, price, quantity); inventoryManager.AddProduct(product); Console.WriteLine("Product added successfully!"); @@ -34,8 +34,8 @@ static void Main(string[] args) case 2: Console.WriteLine("\nCurrent Inventory:"); - List currentInventory = inventoryManager.GetInventory(); - foreach (Product currentProduct in currentInventory) + List productsInInventory = inventoryManager.GetInventory(); + foreach (Product currentProduct in productsInInventory) { Console.WriteLine($"Name: {currentProduct.Name}, Price: ${currentProduct.Price}, Quantity: {currentProduct.Quantity}"); }