diff --git a/Program.cs b/Program.cs
index 626adc4..9f0dbe7 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,9 +1,85 @@
namespace es_microsoft;
-class Program
-{
- static void Main(string[] args)
+class Program {
+ static void Main(string[] args) {
+
+
+ string[][] userEnteredValues = new string[][]
{
- Console.WriteLine("Hello, World!");
+ new string[] { "1", "2", "3"},
+ new string[] { "1", "two", "3"},
+ new string[] { "0", "1", "2"}
+ };
+
+ string overallStatusMessage = "";
+
+ overallStatusMessage = Workflow1(userEnteredValues);
+
+ if (overallStatusMessage == "operating procedure complete") {
+ Console.WriteLine("'Workflow1' completed successfully.");
+ }
+ else {
+ Console.WriteLine("An error occurred during 'Workflow1'.");
+ Console.WriteLine(overallStatusMessage);
+ }
+
+ static string Workflow1(string[][] userEnteredValues) {
+ string operationStatusMessage = "good";
+ string processStatusMessage = "";
+
+ foreach (string[] userEntries in userEnteredValues) {
+ processStatusMessage = Process1(userEntries);
+
+ if (processStatusMessage == "process complete") {
+ Console.WriteLine("'Process1' completed successfully.");
+ Console.WriteLine();
+ }
+ else {
+ Console.WriteLine("'Process1' encountered an issue, process aborted.");
+ Console.WriteLine(processStatusMessage);
+ Console.WriteLine();
+ operationStatusMessage = processStatusMessage;
+ }
+ }
+
+ if (operationStatusMessage == "good") {
+ operationStatusMessage = "operating procedure complete";
+ }
+
+ return operationStatusMessage;
+ }
+
+ static string Process1(String[] userEntries) {
+ string processStatus = "clean";
+ string returnMessage = "";
+ int valueEntered;
+
+ foreach (string userValue in userEntries) {
+ bool integerFormat = int.TryParse(userValue, out valueEntered);
+
+ if (integerFormat == true) {
+ if (valueEntered != 0) {
+ checked {
+ int calculatedValue = 4 / valueEntered;
+ }
+ }
+ else {
+ returnMessage = "Invalid data. User input values must be non-zero values.";
+ processStatus = "error";
+ }
+ }
+ else {
+ returnMessage = "Invalid data. User input values must be valid integers.";
+ processStatus = "error";
+ }
+ }
+
+ if (processStatus == "clean") {
+ returnMessage = "process complete";
+ }
+
+ return returnMessage;
+ }
}
}
+
diff --git a/bin/Debug/net9.0/es_microsoft b/bin/Debug/net9.0/es_microsoft
new file mode 100755
index 0000000..97f83f7
Binary files /dev/null and b/bin/Debug/net9.0/es_microsoft differ
diff --git a/bin/Debug/net9.0/es_microsoft.deps.json b/bin/Debug/net9.0/es_microsoft.deps.json
new file mode 100644
index 0000000..fc7efc4
--- /dev/null
+++ b/bin/Debug/net9.0/es_microsoft.deps.json
@@ -0,0 +1,23 @@
+{
+ "runtimeTarget": {
+ "name": ".NETCoreApp,Version=v9.0",
+ "signature": ""
+ },
+ "compilationOptions": {},
+ "targets": {
+ ".NETCoreApp,Version=v9.0": {
+ "es_microsoft/1.0.0": {
+ "runtime": {
+ "es_microsoft.dll": {}
+ }
+ }
+ }
+ },
+ "libraries": {
+ "es_microsoft/1.0.0": {
+ "type": "project",
+ "serviceable": false,
+ "sha512": ""
+ }
+ }
+}
\ No newline at end of file
diff --git a/bin/Debug/net9.0/es_microsoft.dll b/bin/Debug/net9.0/es_microsoft.dll
new file mode 100644
index 0000000..ccd810d
Binary files /dev/null and b/bin/Debug/net9.0/es_microsoft.dll differ
diff --git a/bin/Debug/net9.0/es_microsoft.pdb b/bin/Debug/net9.0/es_microsoft.pdb
new file mode 100644
index 0000000..5b08c3b
Binary files /dev/null and b/bin/Debug/net9.0/es_microsoft.pdb differ
diff --git a/bin/Debug/net9.0/es_microsoft.runtimeconfig.json b/bin/Debug/net9.0/es_microsoft.runtimeconfig.json
new file mode 100644
index 0000000..b19c3c8
--- /dev/null
+++ b/bin/Debug/net9.0/es_microsoft.runtimeconfig.json
@@ -0,0 +1,12 @@
+{
+ "runtimeOptions": {
+ "tfm": "net9.0",
+ "framework": {
+ "name": "Microsoft.NETCore.App",
+ "version": "9.0.0"
+ },
+ "configProperties": {
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs
new file mode 100644
index 0000000..9e76325
--- /dev/null
+++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
diff --git a/obj/Debug/net9.0/apphost b/obj/Debug/net9.0/apphost
new file mode 100755
index 0000000..97f83f7
Binary files /dev/null and b/obj/Debug/net9.0/apphost differ
diff --git a/obj/Debug/net9.0/es_microsoft.AssemblyInfo.cs b/obj/Debug/net9.0/es_microsoft.AssemblyInfo.cs
new file mode 100644
index 0000000..f149490
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.AssemblyInfo.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("es_microsoft")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f7de842578b3a781c70401e9cda7d4a76775c93f")]
+[assembly: System.Reflection.AssemblyProductAttribute("es_microsoft")]
+[assembly: System.Reflection.AssemblyTitleAttribute("es_microsoft")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Generated by the MSBuild WriteCodeFragment class.
+
diff --git a/obj/Debug/net9.0/es_microsoft.AssemblyInfoInputs.cache b/obj/Debug/net9.0/es_microsoft.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..f8712db
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+56ed7301782671e005aca5beb135364494d106475fc78ab1890b2ca1c798aa82
diff --git a/obj/Debug/net9.0/es_microsoft.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/es_microsoft.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..c12ecde
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,15 @@
+is_global = true
+build_property.TargetFramework = net9.0
+build_property.TargetPlatformMinVersion =
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = es_microsoft
+build_property.ProjectDir = /home/Verde/git/es_microsoft/
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
+build_property.EffectiveAnalysisLevelStyle = 9.0
+build_property.EnableCodeStyleSeverity =
diff --git a/obj/Debug/net9.0/es_microsoft.GlobalUsings.g.cs b/obj/Debug/net9.0/es_microsoft.GlobalUsings.g.cs
new file mode 100644
index 0000000..8578f3d
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.GlobalUsings.g.cs
@@ -0,0 +1,8 @@
+//
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
diff --git a/obj/Debug/net9.0/es_microsoft.assets.cache b/obj/Debug/net9.0/es_microsoft.assets.cache
new file mode 100644
index 0000000..4001871
Binary files /dev/null and b/obj/Debug/net9.0/es_microsoft.assets.cache differ
diff --git a/obj/Debug/net9.0/es_microsoft.csproj.CoreCompileInputs.cache b/obj/Debug/net9.0/es_microsoft.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..1313d98
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+2be6b779e5cb4966fd7ebfdacfb509b07222b8b6baaedce0324029f937a44052
diff --git a/obj/Debug/net9.0/es_microsoft.csproj.FileListAbsolute.txt b/obj/Debug/net9.0/es_microsoft.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..519dd29
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.csproj.FileListAbsolute.txt
@@ -0,0 +1,14 @@
+/home/Verde/git/es_microsoft/bin/Debug/net9.0/es_microsoft
+/home/Verde/git/es_microsoft/bin/Debug/net9.0/es_microsoft.deps.json
+/home/Verde/git/es_microsoft/bin/Debug/net9.0/es_microsoft.runtimeconfig.json
+/home/Verde/git/es_microsoft/bin/Debug/net9.0/es_microsoft.dll
+/home/Verde/git/es_microsoft/bin/Debug/net9.0/es_microsoft.pdb
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.GeneratedMSBuildEditorConfig.editorconfig
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.AssemblyInfoInputs.cache
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.AssemblyInfo.cs
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.csproj.CoreCompileInputs.cache
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.dll
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/refint/es_microsoft.dll
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.pdb
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/es_microsoft.genruntimeconfig.cache
+/home/Verde/git/es_microsoft/obj/Debug/net9.0/ref/es_microsoft.dll
diff --git a/obj/Debug/net9.0/es_microsoft.dll b/obj/Debug/net9.0/es_microsoft.dll
new file mode 100644
index 0000000..ccd810d
Binary files /dev/null and b/obj/Debug/net9.0/es_microsoft.dll differ
diff --git a/obj/Debug/net9.0/es_microsoft.genruntimeconfig.cache b/obj/Debug/net9.0/es_microsoft.genruntimeconfig.cache
new file mode 100644
index 0000000..b16982a
--- /dev/null
+++ b/obj/Debug/net9.0/es_microsoft.genruntimeconfig.cache
@@ -0,0 +1 @@
+c085ced4f66816c1965ad7037a9f6eb131b43a1283d17d379c08ae9082e5e175
diff --git a/obj/Debug/net9.0/es_microsoft.pdb b/obj/Debug/net9.0/es_microsoft.pdb
new file mode 100644
index 0000000..5b08c3b
Binary files /dev/null and b/obj/Debug/net9.0/es_microsoft.pdb differ
diff --git a/obj/Debug/net9.0/ref/es_microsoft.dll b/obj/Debug/net9.0/ref/es_microsoft.dll
new file mode 100644
index 0000000..ccd8df6
Binary files /dev/null and b/obj/Debug/net9.0/ref/es_microsoft.dll differ
diff --git a/obj/Debug/net9.0/refint/es_microsoft.dll b/obj/Debug/net9.0/refint/es_microsoft.dll
new file mode 100644
index 0000000..ccd8df6
Binary files /dev/null and b/obj/Debug/net9.0/refint/es_microsoft.dll differ